'Scenario: Check saving module metadata on switching between tabs
Given I have created a Video component with subtitles "t_not_exist"
After I enter a "video_name_1.mp4" source to field number 1 I should see status message "No Timed Transcript"
Open tab "Advanced" and set value "t_not_exist" to the field "Default Timed Transcript"
When I open tab "Basic" Then I see status message "Timed Transcript Found"
After saving the changes video captions should be visible
When I edit the component I should see status message "Timed Transcript Found"
And I see value "video_name_1" in the field "Default Timed Transcript"'

def test_module_metadata_save(self):

    self._create_video_component(subtitles=True, subtitle_id='t_not_exist')
    self.edit_component()
    self.video.set_url_field('video_name_1.mp4', 1)
    self.assertEqual(self.video.message('status'), 'No    Timed    Transcript')
    self.open_advanced_tab()
    self.video.set_field_value('Default    Timed    Transcript', 't_not_exist')
    self.open_basic_tab()
    self.assertEqual(self.video.message('status'), 'Timed    Transcript    Found')
    self.save_unit_settings()
    self.assertTrue(self.video.is_captions_visible())
    self.edit_component()
    self.assertEqual(self.video.message('status'), 'Timed    Transcript    Found')
    self.assertTrue(self.video.verify_field_value('Default    Timed    Transcript', 'video_name_1'))
