'Scenario: User can upload transcript file with > 1mb size
Given I have created a Video component
And I edit the component
And I open tab "Advanced"
And I upload transcript file "1mb_transcripts.srt" for "uk" language code
And I save changes
Then when I view the video it does show the captions
And I see "ÐÑÐžÐ²ÑÑ, edX Ð²ÑÑÐ°Ñ Ð²Ð°Ñ." text in the captions'

def test_upload_large_transcript(self):

    self._create_video_component()
    self.edit_component()
    self.open_advanced_tab()
    self.video.upload_translation('1mb_transcripts.srt', 'uk')
    self.save_unit_settings()
    self.video.wait_for(self.video.is_captions_visible, 'Captions    are    visible', timeout=10)
    unicode_text = '\xd0\x9f\xd1\x80\xd0\xb8\xd0\xb2\xd1\x96\xd1\x82,    edX    \xd0\xb2\xd1\x96\xd1\x82\xd0\xb0\xd1\x94    \xd0\xb2\xd0\xb0\xd1\x81.'.decode('utf-8')
    self.assertIn(unicode_text, self.video.captions_lines())
