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
fab43e1a
Commit
fab43e1a
authored
Apr 03, 2014
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3199 from edx/alex/fix_flaky_video_test_20
Alex/fix flaky video test 20
parents
e3902cbe
c3f99438
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lms/djangoapps/courseware/features/video.py
+6
-0
No files found.
lms/djangoapps/courseware/features/video.py
View file @
fab43e1a
...
...
@@ -539,6 +539,10 @@ def select_transcript_format(_step, format):
menu_selector
=
VIDEO_MENUS
[
'download_transcript'
]
button
=
world
.
css_find
(
button_selector
)
.
first
height
=
button
.
_element
.
location_once_scrolled_into_view
[
'y'
]
world
.
browser
.
driver
.
execute_script
(
"window.scrollTo(0, {});"
.
format
(
height
))
button
.
mouse_over
()
assert
world
.
css_has_text
(
button_selector
,
'...'
,
strip
=
True
)
...
...
@@ -549,6 +553,8 @@ def select_transcript_format(_step, format):
world
.
wait_for_ajax_complete
()
break
world
.
browser
.
driver
.
execute_script
(
"window.scrollTo(0, 0);"
)
assert
world
.
css_find
(
menu_selector
+
' .active a'
)[
0
][
'data-value'
]
==
format
assert
world
.
css_has_text
(
button_selector
,
'.'
+
format
,
strip
=
True
)
...
...
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