Commit e3902cbe by Alexander Kryklia

Merge pull request #3198 from edx/alex/fix_flaky_video_test_12

Fix flaky test #12
parents 80635a99 2a39d283
...@@ -390,12 +390,12 @@ def error_message_has_correct_text(_step): ...@@ -390,12 +390,12 @@ def error_message_has_correct_text(_step):
@step('I make sure captions are (.+)$') @step('I make sure captions are (.+)$')
def set_captions_visibility_state(_step, captions_state): def set_captions_visibility_state(_step, captions_state):
SELECTOR = '.closed .subtitles' SELECTOR = '.closed .subtitles'
if world.is_css_not_present(SELECTOR): if world.is_css_not_present(SELECTOR, wait_time=30):
if captions_state == 'closed': if captions_state == 'closed':
world.css_find('.hide-subtitles').click() world.css_click('.hide-subtitles')
else: else:
if captions_state != 'closed': if captions_state != 'closed':
world.css_find('.hide-subtitles').click() world.css_click('.hide-subtitles')
@step('I see video menu "([^"]*)" with correct items$') @step('I see video menu "([^"]*)" with correct items$')
......
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