'Scenario: Video component stores speed correctly when each video is in separate sequential
Given I have a video "A" in "Youtube" mode in position "1" of sequential
And a video "B" in "Youtube" mode in position "2" of sequential
And a video "C" in "HTML5" mode in position "3" of sequential'

def test_video_component_stores_speed_correctly_for_multiple_videos(self):

    self.contents_of_verticals = [[{'display_name': 'A'}], [{'display_name': 'B'}], [{'display_name': 'C', 'metadata': self.metadata_for_mode('html5')}]]
    self.navigate_to_video()
    self.courseware_page.nav.go_to_vertical('Test    Vertical-0')
    self.video.wait_for_video_player_render()
    self.video.speed = '2.0'
    self.courseware_page.nav.go_to_vertical('Test    Vertical-1')
    self.video.wait_for_video_player_render()
    self.video.speed = '0.50'
    self.courseware_page.nav.go_to_vertical('Test    Vertical-2')
    self.video.wait_for_video_player_render()
    self.video.verify_speed_changed('0.75x')
    self.courseware_page.nav.go_to_vertical('Test    Vertical-0')
    self.assertEqual(self.video.speed, '2.0x')
    self.video.reload_page()
    self.courseware_page.nav.go_to_vertical('Test    Vertical-0')
    self.assertEqual(self.video.speed, '2.0x')
    self.video.speed = '1.0'
    self.courseware_page.nav.go_to_vertical('Test    Vertical-1')
    self.assertEqual(self.video.speed, '0.50x')
    self.courseware_page.nav.go_to_vertical('Test    Vertical-2')
    self.video.verify_speed_changed('1.0x')
