Commit 9a4633be by polesye

Fix matchers.

parent 298e0a9b
...@@ -16,21 +16,25 @@ def i_created_a_video_component(step): ...@@ -16,21 +16,25 @@ def i_created_a_video_component(step):
) )
@step('I have created a Video component with (.*)subtitles$') @step('I have created a Video component with subtitles$')
def i_created_a_video_with_subs(_step, sub_id): def i_created_a_video_with_subs(_step):
_step.given('I have created a Video component with subtitles "OEoXaMPEzfM"')
@step('I have created a Video component with subtitles "([^"]*)"$')
def i_created_a_video_with_subs_with_name(_step, sub_id):
_step.given('I have created a Video component') _step.given('I have created a Video component')
# Store the current URL so we can return here # Store the current URL so we can return here
video_url = world.browser.url video_url = world.browser.url
# Upload subtitles for the video using the upload interface # Upload subtitles for the video using the upload interface
_step.given('I have uploaded {} subtitles'.format(sub_id)) _step.given('I have uploaded subtitles "{}"'.format(sub_id))
# Return to the video # Return to the video
world.visit(video_url) world.visit(video_url)
@step('I have uploaded (.*) subtitles$') @step('I have uploaded subtitles "([^"]*)"$')
def i_have_uploaded_subtitles(_step, sub_id): def i_have_uploaded_subtitles(_step, sub_id):
_step.given('I go to the files and uploads page') _step.given('I go to the files and uploads page')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment