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
16e9f9c6
Commit
16e9f9c6
authored
May 18, 2016
by
Christina Roberts
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12500 from edx/christina/tnl-1619
Can no longer play outside of the start/end time for the clip.
parents
3e747c37
9d282373
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
57 deletions
+0
-57
common/test/acceptance/tests/video/test_video_times.py
+0
-57
No files found.
common/test/acceptance/tests/video/test_video_times.py
View file @
16e9f9c6
...
...
@@ -105,60 +105,3 @@ class VideoTimesTest(VideoBaseTest):
self
.
video
.
wait_for_state
(
'pause'
)
self
.
assertIn
(
self
.
video
.
position
,
(
'0:15'
,
'0:16'
))
@unittest.skip
(
'This is actually a bug! See TNL-1619'
)
def
test_video_end_time_and_finish_time
(
self
):
"""
Scenario: Youtube video works after pausing at end time and then plays again from End Time to the end.
Given we have a video in "Youtube" mode with start time set to 00:02:10 and end_time set to 00:02:15
And I click video button "play"
And I wait until video stop playing
Then I see video slider at "2:15" position
And I click video button "play"
And I wait until video stop playing
Then I see video slider at "2:20" position
"""
data
=
{
'start_time'
:
'00:02:10'
,
'end_time'
:
'00:02:15'
}
self
.
metadata
=
self
.
metadata_for_mode
(
'youtube'
,
additional_data
=
data
)
# go to video
self
.
navigate_to_video
()
self
.
video
.
click_player_button
(
'play'
)
# wait until video stop playing
self
.
video
.
wait_for_state
(
'pause'
)
self
.
assertIn
(
self
.
video
.
position
,
(
'2:15'
,
'2:16'
))
self
.
video
.
click_player_button
(
'play'
)
# wait until video stop playing
self
.
video
.
wait_for_state
(
'finished'
)
self
.
assertEqual
(
self
.
video
.
position
,
'2:20'
)
def
test_video_end_time_with_seek
(
self
):
"""
Scenario: End Time works for Youtube Video if starts playing before Start Time.
Given we have a video in "Youtube" mode with end-time at 0:35 and start-time at 0:30
And I seek video to "0:28" position
And I click video button "play"
And I wait until video stop playing
Then I see video slider at "0:35" position
"""
data
=
{
'start_time'
:
'00:00:30'
,
'end_time'
:
'00:00:35'
}
self
.
metadata
=
self
.
metadata_for_mode
(
'youtube'
,
additional_data
=
data
)
# go to video
self
.
navigate_to_video
()
self
.
video
.
seek
(
'0:28'
)
self
.
video
.
click_player_button
(
'play'
)
# wait until video stop playing
self
.
video
.
wait_for_state
(
'pause'
)
self
.
assertIn
(
self
.
video
.
position
,
(
'0:35'
,
'0:36'
))
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