Commit fd1d72cc by cahrens

Wait for seek to complete before pressing play.

TNL-4540
parent 06fa0839
...@@ -842,6 +842,7 @@ class VideoPage(PageObject): ...@@ -842,6 +842,7 @@ class VideoPage(PageObject):
return self.state != 'buffering' return self.state != 'buffering'
self._wait_for(_is_buffering_completed, 'Buffering completed after Seek.') self._wait_for(_is_buffering_completed, 'Buffering completed after Seek.')
self.wait_for_position(seek_value)
def reload_page(self): def reload_page(self):
""" """
......
""" """
Acceptance tests for Video Times(Start, End and Finish) functionality. Acceptance tests for Video Times(Start, End and Finish) functionality.
""" """
from flaky import flaky
from .test_video_module import VideoBaseTest from .test_video_module import VideoBaseTest
import unittest
class VideoTimesTest(VideoBaseTest): class VideoTimesTest(VideoBaseTest):
...@@ -55,7 +53,6 @@ class VideoTimesTest(VideoBaseTest): ...@@ -55,7 +53,6 @@ class VideoTimesTest(VideoBaseTest):
self.assertIn(self.video.position, ('0:05', '0:06')) self.assertIn(self.video.position, ('0:05', '0:06'))
@flaky # TODO fix this, see TNL-1619
def test_video_end_time_wo_default_start_time(self): def test_video_end_time_wo_default_start_time(self):
""" """
Scenario: End time works for Youtube video if starts playing from between. Scenario: End time works for Youtube video if starts playing from between.
......
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