'Scenario: CC button works correctly with transcript in YouTube mode
Given the course has a video component in "Youtube" mode
And I have defined a transcript for the video
Then I see the closed captioning element over the video'

def test_cc_button(self):

    data = {'transcripts': {'zh': 'chinese_transcripts.srt'}}
    self.metadata = self.metadata_for_mode('youtube', data)
    self.assets.append('chinese_transcripts.srt')
    self.navigate_to_video()
    self.video.show_closed_captions()
    self.video.wait_for_closed_captions()
    self.assertTrue(self.video.is_closed_captions_visible)
    self.video.reload_page()
    self.assertTrue(self.video.is_closed_captions_visible)
    self.video.hide_closed_captions()
    self.video.wait_for_closed_captions_to_be_hidden()
    self.video.reload_page()
    self.video.wait_for_closed_captions_to_be_hidden()
