Commit c6d23731 by raeeschachar

Fixed test_video_component_stores_speed_correctly_for_multiple_videos failing on Chrome

parent ccbd88ac
......@@ -126,6 +126,8 @@ class CourseNavPage(PageObject):
# Convert the list index (starts at 0) to a CSS index (starts at 1)
seq_css = "ol#sequence-list>li:nth-of-type({0})>a".format(seq_index + 1)
self.q(css=seq_css).first.click()
# Click triggers an ajax event
self.wait_for_ajax()
def _section_titles(self):
"""
......
......@@ -443,6 +443,8 @@ class VideoPage(PageObject):
speed_selector = self.get_element_selector('li[data-speed="{speed}"] .control'.format(speed=speed))
self.q(css=speed_selector).first.click()
# Click triggers an ajax event
self.wait_for_ajax()
def verify_speed_changed(self, expected_speed):
"""
......
......@@ -679,14 +679,17 @@ class YouTubeVideoTest(VideoBaseTest):
# select the "2.0" speed on video "A"
self.course_nav.go_to_sequential('A')
self.video.wait_for_video_player_render()
self.video.speed = '2.0'
# select the "0.50" speed on video "B"
self.course_nav.go_to_sequential('B')
self.video.wait_for_video_player_render()
self.video.speed = '0.50'
# open video "C"
self.course_nav.go_to_sequential('C')
self.video.wait_for_video_player_render()
# Since the playback speed was set to .5 in "B", this video will also be impacted
# because a playback speed has never explicitly been set for it. However, this video
......
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