'Scenario: Translations removing 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 file "uk_transcripts.srt" for "uk" language code
And I see translations for "uk"
Then I remove translation for "uk" language code
And I save changes
Then when I view the video it does not show the captions'

def test_translations_remove_works_wo_saving(self):

    self._create_video_component()
    self.edit_component()
    self.open_advanced_tab()
    self.video.upload_translation('uk_transcripts.srt', 'uk')
    self.assertEqual(self.video.translations(), ['uk'])
    self.video.remove_translation('uk')
    self.save_unit_settings()
    self.assertFalse(self.video.is_captions_visible())
