Commit e5cbb1c9 by raeeschachar

Fixed test cannot upload json translation failing on Chrome

parent f5a63b1e
...@@ -183,12 +183,11 @@ class VideoComponentPage(VideoPage): ...@@ -183,12 +183,11 @@ class VideoComponentPage(VideoPage):
asset_file_path = self.file_path(asset_filename) asset_file_path = self.file_path(asset_filename)
self.click_button('upload_asset', index) self.click_button('upload_asset', index)
self.q(css=CLASS_SELECTORS['attach_asset']).results[0].send_keys(asset_file_path) self.q(css=CLASS_SELECTORS['attach_asset']).results[0].send_keys(asset_file_path)
self.click_button('asset_submit')
# Only srt format transcript files can be uploaded, If an error # Only srt format transcript files can be uploaded, If an error
# occurs due to incorrect transcript file we will return from here # occurs due to incorrect transcript file we will return from here
if asset_type == 'transcript' and self.q(css='#upload_error').present: if asset_type == 'transcript' and self.q(css='#upload_error').present:
return return
self.click_button('asset_submit')
# confirm upload completion # confirm upload completion
self._wait_for(lambda: not self.q(css=CLASS_SELECTORS['upload_dialog']).present, 'Upload Completed') self._wait_for(lambda: not self.q(css=CLASS_SELECTORS['upload_dialog']).present, 'Upload Completed')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment