'Scenario: CC button works correctly with only english transcript in HTML5 mode
Given the course has a Video component in "HTML5" mode
And I have defined english subtitles for the video
And I have uploaded an english transcript file to assets
Then I see the correct text in the captions'

def test_cc_button_with_english_transcript(self):

    self.assets.append('subs_3_yD_cEKoCk.srt.sjson')
    data = {'sub': '3_yD_cEKoCk'}
    self.metadata = self.metadata_for_mode('html5', additional_data=data)
    self.navigate_to_video()
    self.video.show_captions()
    self.assertIn('Welcome    to    edX.', self.video.captions_text)
