Commit 9d282373 by cahrens

Can no longer play outside of the start/end time for the clip.

This functionality was removed in PR 7111, but not all impacted
tests were deleted.
parent 8c418c62
...@@ -105,60 +105,3 @@ class VideoTimesTest(VideoBaseTest): ...@@ -105,60 +105,3 @@ class VideoTimesTest(VideoBaseTest):
self.video.wait_for_state('pause') self.video.wait_for_state('pause')
self.assertIn(self.video.position, ('0:15', '0:16')) self.assertIn(self.video.position, ('0:15', '0:16'))
@unittest.skip('This is actually a bug! See TNL-1619')
def test_video_end_time_and_finish_time(self):
"""
Scenario: Youtube video works after pausing at end time and then plays again from End Time to the end.
Given we have a video in "Youtube" mode with start time set to 00:02:10 and end_time set to 00:02:15
And I click video button "play"
And I wait until video stop playing
Then I see video slider at "2:15" position
And I click video button "play"
And I wait until video stop playing
Then I see video slider at "2:20" position
"""
data = {'start_time': '00:02:10', 'end_time': '00:02:15'}
self.metadata = self.metadata_for_mode('youtube', additional_data=data)
# go to video
self.navigate_to_video()
self.video.click_player_button('play')
# wait until video stop playing
self.video.wait_for_state('pause')
self.assertIn(self.video.position, ('2:15', '2:16'))
self.video.click_player_button('play')
# wait until video stop playing
self.video.wait_for_state('finished')
self.assertEqual(self.video.position, '2:20')
def test_video_end_time_with_seek(self):
"""
Scenario: End Time works for Youtube Video if starts playing before Start Time.
Given we have a video in "Youtube" mode with end-time at 0:35 and start-time at 0:30
And I seek video to "0:28" position
And I click video button "play"
And I wait until video stop playing
Then I see video slider at "0:35" position
"""
data = {'start_time': '00:00:30', 'end_time': '00:00:35'}
self.metadata = self.metadata_for_mode('youtube', additional_data=data)
# go to video
self.navigate_to_video()
self.video.seek('0:28')
self.video.click_player_button('play')
# wait until video stop playing
self.video.wait_for_state('pause')
self.assertIn(self.video.position, ('0:35', '0:36'))
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