From 2a39d28348b16b5c4318f0376f9bbc57f98d831d Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Wed, 2 Apr 2014 17:05:04 +0300 Subject: [PATCH] Fix flaky test #12 "CC button works correctly w/o english transcript in HTML5 mode of Video component" --- lms/djangoapps/courseware/features/video.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/courseware/features/video.py b/lms/djangoapps/courseware/features/video.py index 7332e45072..a9523a57f3 100644 --- a/lms/djangoapps/courseware/features/video.py +++ b/lms/djangoapps/courseware/features/video.py @@ -390,12 +390,12 @@ def error_message_has_correct_text(_step): @step('I make sure captions are (.+)$') def set_captions_visibility_state(_step, captions_state): SELECTOR = '.closed .subtitles' - if world.is_css_not_present(SELECTOR): + if world.is_css_not_present(SELECTOR, wait_time=30): if captions_state == 'closed': - world.css_find('.hide-subtitles').click() + world.css_click('.hide-subtitles') else: if captions_state != 'closed': - world.css_find('.hide-subtitles').click() + world.css_click('.hide-subtitles') @step('I see video menu "([^"]*)" with correct items$')