'Scenario: After reverting Transcripts field in the Advanced tab "not found" message should be visible
Given I have created a Video component
After I enter a "t_not_exist.mp4" source to field number 1 Then I see status message "No Timed Transcript"
After uploading transcripts "chinese_transcripts.srt" I see message "Timed Transcript Uploaded Successfully"
After saving the changes I should see "å¥œ åäœåå­Š" text in the captions
After I edit the component I open tab "Advanced"
And I revert the transcript field "Default Timed Transcript"
After saving the changes video captions should not be visible
After I edit the component I should see status message "No Timed Transcript"'

def test_reverting_transcripts(self):

    self._create_video_component()
    self.edit_component()
    self.video.set_url_field('t_not_exist.mp4', 1)
    self.assertEqual(self.video.message('status'), 'No    Timed    Transcript')
    self.video.upload_transcript('chinese_transcripts.srt')
    self.assertEqual(self.video.message('status'), 'Timed    Transcript    Uploaded    Successfully')
    self.save_unit_settings()
    unicode_text = '\xe5\xa5\xbd    \xe5\x90\x84\xe4\xbd\x8d\xe5\x90\x8c\xe5\xad\xa6'.decode('utf-8')
    self.assertIn(unicode_text, self.video.captions_text)
    self.edit_component()
    self.open_advanced_tab()
    self.video.revert_field('Default    Timed    Transcript')
    self.save_unit_settings()
    self.assertFalse(self.video.is_captions_visible())
    self.edit_component()
    self.assertEqual(self.video.message('status'), 'No    Timed    Transcript')
