'Scenario: Captions are toggled correctly
Given I have created a Video component with subtitles
And I have toggled captions
Then when I view the video it does show the captions'

def test_captions_toggling(self):

    self._create_course_unit(subtitles=True)
    self.video.click_player_button('transcript_button')
    self.assertFalse(self.video.is_captions_visible())
    self.video.click_player_button('transcript_button')
    self.assertTrue(self.video.is_captions_visible())
