Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
35652176
Commit
35652176
authored
Aug 16, 2016
by
Jesse Zoldak
Committed by
GitHub
Aug 16, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13249 from edx/zoldak/fix-flaky-video-test
Wait for the transcript file chooser input field to be visible
parents
98a03f68
4a1bc538
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
common/test/acceptance/pages/studio/video/video.py
+4
-2
No files found.
common/test/acceptance/pages/studio/video/video.py
View file @
35652176
...
...
@@ -639,6 +639,8 @@ class VideoComponentPage(VideoPage):
# Show the Browse Button
self
.
browser
.
execute_script
(
"$('form.file-chooser').show()"
)
asset_file_path
=
self
.
file_path
(
transcript_filename
)
self
.
q
(
css
=
CLASS_SELECTORS
[
'attach_transcript'
])
.
results
[
0
]
.
send_keys
(
asset_file_path
)
attach_css
=
CLASS_SELECTORS
[
'attach_transcript'
]
self
.
wait_for_element_visibility
(
attach_css
,
"The file chooser's input field is visible."
)
self
.
q
(
css
=
attach_css
)
.
results
[
0
]
.
send_keys
(
asset_file_path
)
# confirm upload completion
self
.
_wait_for
(
lambda
:
not
self
.
q
(
css
=
CLASS_SELECTORS
[
'attach_transcript'
]
)
.
visible
,
'Upload Completed'
)
self
.
_wait_for
(
lambda
:
not
self
.
q
(
css
=
attach_css
)
.
visible
,
'Upload Completed'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment