'Scenario: Entering youtube with imported transcripts - html5 with transcripts - html5 w/o transcripts
Given I have created a Video component with subtitles "t_neq_exist"
And I enter a "http://youtu.be/t__eq_exist" source to field number 1
Then I see status message "No EdX Timed Transcript"
And I see button "import"
And I click transcript button "import"
Then I see status message "Timed Transcript Found"
And I see button "upload_new_timed_transcripts"
urls = [\'t_neq_exist.mp4\', \'t_not_exist.webm\']
for each url in urls do the following
ââââââââââââEnter `url` to field number `n`
ââââââââââââStatus message `Timed Transcript Found` is shown
ââââââââââââ`download_to_edit` and `upload_new_timed_transcripts` buttons are shown'

def test_youtube_w_imported_transcripts(self):

    self._create_video_component(subtitles=True, subtitle_id='t_neq_exist')
    self.edit_component()
    self.video.set_url_field('http://youtu.be/t__eq_exist', 1)
    self.assertEqual(self.video.message('status'), 'No    EdX    Timed    Transcript')
    self.assertTrue(self.video.is_transcript_button_visible('import'))
    self.video.click_button('import')
    self.assertEqual(self.video.message('status'), 'Timed    Transcript    Found')
    self.assertTrue(self.video.is_transcript_button_visible('upload_new_timed_transcripts'))
    urls = ['t_neq_exist.mp4', 't_not_exist.webm']
    for (index, url) in enumerate(urls, 2):
        self.video.set_url_field(url, index)
        self.assertEqual(self.video.message('status'), 'Timed    Transcript    Found')
        self.assertTrue(self.video.is_transcript_button_visible('download_to_edit'))
        self.assertTrue(self.video.is_transcript_button_visible('upload_new_timed_transcripts'))
