'Scenario: User should see Youtube captions for If there are no transcripts
available for HTML5 mode
Given that I have uploaded a .srt.sjson file to assets for Youtube mode
And the YouTube API is blocked
And the course has a Video component in "Youtube_HTML5" mode
And Video component rendered in HTML5 mode
And Html5 mode video has no transcripts
When I see the captions for HTML5 mode video
Then I should see the Youtube captions'

def test_html5_video_rendered_with_youtube_captions(self):

    self.assets.append('subs_3_yD_cEKoCk.srt.sjson')
    self.youtube_configuration.update({'time_to_response': 2.0, 'youtube_api_blocked': True})
    data = {'sub': '3_yD_cEKoCk'}
    self.metadata = self.metadata_for_mode('youtube_html5', additional_data=data)
    self.navigate_to_video()
    self.assertTrue(self.video.is_video_rendered('html5'))
    self.assertTrue(self.video.is_button_shown('transcript_button'))
    self._verify_caption_text('Welcome    to    edX.')
