'Scenario: Translations clearing works correctly w/o preliminary saving
Given I have created a Video component
And I edit the component
And I open tab "Advanced"
And I upload transcript files:
|lang_code|filename               |
|uk       |uk_transcripts.srt     |
|zh       |chinese_transcripts.srt|
And I click button "Clear"
And I save changes
Then when I view the video it does not show the captions'

def test_translations_clearing_works_wo_saving(self):

    self._create_video_component()
    self.edit_component()
    self.open_advanced_tab()
    self.video.upload_translation('uk_transcripts.srt', 'uk')
    self.video.upload_translation('chinese_transcripts.srt', 'zh')
    self.video.click_button('translations_clear')
    self.save_unit_settings()
    self.assertFalse(self.video.is_captions_visible())
