From 4ac1079a999ec58a0cb9aa9eac1514c7215265d3 Mon Sep 17 00:00:00 2001 From: Jay Zoldak Date: Mon, 16 Jun 2014 13:59:19 -0400 Subject: [PATCH] Speed up test for closed caption state --- cms/djangoapps/contentstore/features/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/features/video.py b/cms/djangoapps/contentstore/features/video.py index 180e2e3164..77cef035b5 100644 --- a/cms/djangoapps/contentstore/features/video.py +++ b/cms/djangoapps/contentstore/features/video.py @@ -166,7 +166,7 @@ def set_captions_visibility_state(_step, captions_state): SELECTOR = '.closed .subtitles' world.wait_for_visible('.hide-subtitles') if captions_state == 'closed': - if not world.is_css_present(SELECTOR): + if world.is_css_not_present(SELECTOR): world.css_find('.hide-subtitles').click() else: if world.is_css_present(SELECTOR):