Video Editor tests can't upload translations on Firefox 57

Description

Reference for Bok Choy upgrade process: https://openedx.atlassian.net/wiki/spaces/TE/pages/567083109/Firefox+57+upgrade+for+Bok+Choy+tests

Description: As part of the Firefox upgrade on Jenkins, the following tests are failing, and need to be fixed

Error Msg:

1 IndexError: list index out of range

Stack Trace:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 self = <common.test.acceptance.tests.video.test_studio_video_editor.VideoEditorTest testMethod=test_cannot_upload_sjson_translation> def test_cannot_upload_sjson_translation(self): """ Scenario: User cannot upload translations in sjson format Given I have created a Video component And I edit the component And I open tab "Advanced" And I click button "Add" And I choose "uk" language code And I try to upload transcript file "subs_3_yD_cEKoCk.srt.sjson" Then I see validation error "Only SRT files can be uploaded. Please select a file ending in .srt to upload." """ self._create_video_component() self.edit_component() self.open_advanced_tab() self.video.click_button('translation_add') self.video.select_translation_language('uk') > self.video.upload_asset('subs_3_yD_cEKoCk.srt.sjson', asset_type='transcript') common/test/acceptance/tests/video/test_studio_video_editor.py:375: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../edx-venv/local/lib/python2.7/site-packages/bok_choy/page_object.py:122: in wrapper return method(self, *args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <common.test.acceptance.pages.studio.video.video.VideoComponentPage object at 0x7f40d1b5b810> asset_filename = 'subs_3_yD_cEKoCk.srt.sjson', asset_type = 'transcript' index = 0 def upload_asset(self, asset_filename, asset_type='handout', index=0): """ Upload a asset file to assets Arguments: asset_filename (str): asset file name asset_type (str): one of `handout`, `transcript` index (int): query index """ asset_file_path = self.file_path(asset_filename) self.click_button('upload_asset', index) > self.q(css=CLASS_SELECTORS['attach_asset']).results[0].send_keys(asset_file_path) E IndexError: list index out of range common/test/acceptance/pages/studio/video/video.py:201: IndexError

Link to failing build: https://build.testeng.edx.org/job/edx-platform-test-subset/1100578/

Tests Impacted:

acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_cannot_upload_sjson_translation
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_replace_translation_w_save
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_replace_translation_wo_save
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_select_language_twice
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_simplified_and_traditional_chinese_transcripts_uploading
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_table_of_contents
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_translation_upload_remove_upload
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_translations_clearing_works_w_saving
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_translations_clearing_works_wo_saving
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_translations_download_works_w_saving
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_translations_download_works_wo_saving
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_translations_remove_works_w_saving
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_translations_remove_works_wo_saving
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_translations_uploading
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_upload_large_transcript
acceptance.tests.video.test_studio_video_editor.VideoEditorTest.test_upload_transcript_with_BOM

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

Stuart Young

Reporter

Stuart Young

Reach

None

Impact

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Stakeholders

None

Sprint

None

Priority

CAT-3
Configure