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
f94459dd
Commit
f94459dd
authored
Nov 02, 2015
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide time for the display of video speed to change.
TNL-3725
parent
847797da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
common/test/acceptance/pages/lms/video/video.py
+7
-0
common/test/acceptance/tests/video/test_video_module.py
+9
-7
No files found.
common/test/acceptance/pages/lms/video/video.py
View file @
f94459dd
...
...
@@ -374,6 +374,13 @@ class VideoPage(PageObject):
speed_selector
=
self
.
get_element_selector
(
'li[data-speed="{speed}"] a'
.
format
(
speed
=
speed
))
self
.
q
(
css
=
speed_selector
)
.
first
.
click
()
def
verify_speed_changed
(
self
,
expected_speed
):
"""
Wait for the video to change its speed to the expected value. If it does not change,
the wait call will fail the test.
"""
self
.
wait_for
(
lambda
:
self
.
speed
==
expected_speed
,
"Video speed changed"
)
def
click_player_button
(
self
,
button
):
"""
Click on `button`.
...
...
common/test/acceptance/tests/video/test_video_module.py
View file @
f94459dd
...
...
@@ -588,7 +588,6 @@ class YouTubeVideoTest(VideoBaseTest):
self
.
go_to_sequential_position
(
1
)
execute_video_steps
(
tab1_video_names
)
@flaky
# TODO: fix this, ticket TNL-3725
def
test_video_component_stores_speed_correctly_for_multiple_videos
(
self
):
"""
Scenario: Video component stores speed correctly when each video is in separate sequential
...
...
@@ -614,13 +613,15 @@ class YouTubeVideoTest(VideoBaseTest):
# open video "C"
self
.
course_nav
.
go_to_sequential
(
'C'
)
# check if video "C" should start playing at speed "0.75"
self
.
assertEqual
(
self
.
video
.
speed
,
'0.75x'
)
# Since the playback speed was set to .5 in "B", this video will also be impacted
# because a playback speed has never explicitly been set for it. However, this video
# does not have a .5 playback option, so the closest possible (.75) should be selected.
self
.
video
.
verify_speed_changed
(
'0.75x'
)
# open video "A"
self
.
course_nav
.
go_to_sequential
(
'A'
)
#
check if video "A" should start playing at speed "2.0"
#
Video "A" should still play at speed 2.0 because it was explicitly set to that.
self
.
assertEqual
(
self
.
video
.
speed
,
'2.0x'
)
# reload the page
...
...
@@ -638,14 +639,15 @@ class YouTubeVideoTest(VideoBaseTest):
# open video "B"
self
.
course_nav
.
go_to_sequential
(
'B'
)
#
check if video "B" should start playing at speed "0.50"
#
Video "B" should still play at speed .5 because it was explicitly set to that.
self
.
assertEqual
(
self
.
video
.
speed
,
'0.50x'
)
# open video "C"
self
.
course_nav
.
go_to_sequential
(
'C'
)
# check if video "C" should start playing at speed "1.0"
self
.
assertEqual
(
self
.
video
.
speed
,
'1.0x'
)
# The change of speed for Video "A" should impact Video "C" because it still has
# not been explicitly set to a speed.
self
.
video
.
verify_speed_changed
(
'1.0x'
)
def
test_video_has_correct_transcript
(
self
):
"""
...
...
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