Commit e128ce16 by Usman Khalid

Merge pull request #12223 from edx/usman/tnl4304-videoplayer-test

Fix flaky videoplayer bokchoy test.
parents 9db6b04f acd392f0
...@@ -593,7 +593,6 @@ class YouTubeVideoTest(VideoBaseTest): ...@@ -593,7 +593,6 @@ class YouTubeVideoTest(VideoBaseTest):
self.video.select_language('en') self.video.select_language('en')
self._verify_caption_text('Welcome to edX.') self._verify_caption_text('Welcome to edX.')
@flaky # TODO: Fix TNL-4304
def test_video_language_menu_working_closed_captions(self): def test_video_language_menu_working_closed_captions(self):
""" """
Scenario: Language menu works correctly in Video component, checks closed captions Scenario: Language menu works correctly in Video component, checks closed captions
...@@ -619,7 +618,7 @@ class YouTubeVideoTest(VideoBaseTest): ...@@ -619,7 +618,7 @@ class YouTubeVideoTest(VideoBaseTest):
# we start the video, then pause it to activate the transcript # we start the video, then pause it to activate the transcript
self.video.click_player_button('play') self.video.click_player_button('play')
self.video.wait_for_position('0:01') self.video.wait_for_position('0:03')
self.video.click_player_button('pause') self.video.click_player_button('pause')
self.video.select_language('en') self.video.select_language('en')
...@@ -774,19 +773,19 @@ class YouTubeVideoTest(VideoBaseTest): ...@@ -774,19 +773,19 @@ class YouTubeVideoTest(VideoBaseTest):
Given the course has a Video component in "Youtube" mode Given the course has a Video component in "Youtube" mode
Then the video has rendered in "Youtube" mode Then the video has rendered in "Youtube" mode
And I click video button "play"" And I click video button "play""
Then I wait until video reaches at position "0.05" Then I wait until video reaches at position "0.03"
And I click video button "pause" And I click video button "pause"
And I reload the page with video And I reload the page with video
And I click video button "play"" And I click video button "play""
And I click video button "pause" And I click video button "pause"
Then video slider should be Equal or Greater than "0:05" Then video slider should be Equal or Greater than "0:03"
""" """
self.navigate_to_video() self.navigate_to_video()
self.video.click_player_button('play') self.video.click_player_button('play')
self.video.wait_for_position('0:05') self.video.wait_for_position('0:03')
self.video.click_player_button('pause') self.video.click_player_button('pause')
...@@ -795,7 +794,7 @@ class YouTubeVideoTest(VideoBaseTest): ...@@ -795,7 +794,7 @@ class YouTubeVideoTest(VideoBaseTest):
self.video.click_player_button('play') self.video.click_player_button('play')
self.video.click_player_button('pause') self.video.click_player_button('pause')
self.assertGreaterEqual(self.video.seconds, 5) self.assertGreaterEqual(self.video.seconds, 3)
@skip("Intermittently fails 03 June 2014") @skip("Intermittently fails 03 June 2014")
def test_video_position_stored_correctly_with_seek(self): def test_video_position_stored_correctly_with_seek(self):
......
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