'Scenario: Transcript button works correctly if transcripts and sub fields are empty,
but transcript file exists in assets (Youtube mode of Video component)
Given the course has a Video component in "Youtube" mode
And I have uploaded a .srt.sjson file to assets
Then I see the correct english text in the captions'

def test_transcript_button_transcripts_and_sub_fields_empty(self):

    self._install_course_fixture()
    self.course_fixture.add_asset(['subs_3_yD_cEKoCk.srt.sjson'])
    self.course_fixture._upload_assets()
    self._navigate_to_courseware_video_and_render()
    self.video.show_captions()
    self.assertIn('Welcome    to    edX.', self.video.captions_text)
