Commit 6d53bf71 by Jay Zoldak

Merge pull request #4115 from edx/zoldak/fix-test-captions-closed

Speed up test for closed caption state
parents 17210d18 4ac1079a
......@@ -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):
......
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