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
c3f99438
Commit
c3f99438
authored
Apr 03, 2014
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lms video #20: scroll view to be clickable.
parent
2a39d283
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 @
c3f99438
...
...
@@ -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