'Scenario: Transcript work as expected for an HLS video
Given the course has a Video component with "HLS" video only
And I have defined a transcript for the video
Then I see the correct text in the captions for transcript
Then I click on a caption line
And video position should be updated accordingly
Then I change video position
And video caption should be updated accordingly'

def test_hls_video_with_transcript(self):

    data = {'transcripts': {'zh': 'transcript.srt'}}
    self.metadata = self.metadata_for_mode('hls', additional_data=data)
    self.assets.append('transcript.srt')
    self.navigate_to_video()
    self.assertIn('Hi,    edX    welcomes    you0.', self.video.captions_text)
    for line_no in range(5):
        self.video.click_transcript_line(line_no=line_no)
        self.video.wait_for_position('0:0{}'.format(line_no))
    for line_no in range(5):
        self.video.seek('0:0{}'.format(line_no))
        self.assertEqual(self.video.active_caption_text, 'Hi,    edX    welcomes    you{}.'.format(line_no))
