'Scenario: Captions are hidden when "transcript display" is false
Given I have created a Video component with subtitles
And I have set "transcript display" to False
Then when I view the video it does not show the captions'

def test_hidden_captions(self):

    self._create_video_component(subtitles=True)
    self.browser.delete_cookie('hide_captions')
    self.edit_component()
    self.open_advanced_tab()
    self.video.set_field_value('Show    Transcript', 'False', 'select')
    self.save_unit_settings()
    self.assertFalse(self.video.is_captions_visible())
