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
70db47a7
Commit
70db47a7
authored
Apr 03, 2014
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3201 from edx/alex/fix_971
Fix flaky video test #21: increase timeout.
parents
668134de
221f4e23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
21 deletions
+20
-21
lms/djangoapps/courseware/features/video.feature
+19
-20
lms/djangoapps/courseware/features/video.py
+1
-1
No files found.
lms/djangoapps/courseware/features/video.feature
View file @
70db47a7
...
...
@@ -219,23 +219,22 @@ Feature: LMS Video component
When
I open video
"C"
Then
menu
"download_transcript"
doesn't exist
# BLD-971 - Test intermittently failing
# 20
# Scenario: Youtube video has correct transcript if fields for other speeds are filled.
# Given I am registered for the course "test_course"
# And I have a "subs_OEoXaMPEzfM.srt.sjson" transcript file in assets
# And I have a "subs_b7xgknqkQk8.srt.sjson" transcript file in assets
# And it has a video in "Youtube" mode:
# | sub | youtube_id_1_5 |
# | OEoXaMPEzfM | b7xgknqkQk8 |
# And I make sure captions are opened
# Then I see "Hi, welcome to Edx." text in the captions
# And I select the "1.50" speed
# And I reload the page
# Then I see "Hi, welcome to Edx." text in the captions
# And I see duration "1:00"
# 21
Scenario
:
Youtube video has correct transcript if fields for other speeds are filled.
Given
I am registered for the course
"test_course"
And
I have a
"subs_OEoXaMPEzfM.srt.sjson"
transcript file in assets
And
I have a
"subs_b7xgknqkQk8.srt.sjson"
transcript file in assets
And it has a video in "Youtube" mode
:
|
sub
|
youtube_id_1_5
|
|
OEoXaMPEzfM
|
b7xgknqkQk8
|
And
I make sure captions are opened
Then
I see
"Hi, welcome to Edx."
text in the captions
And
I select the
"1.50"
speed
And
I reload the page
Then
I see
"Hi, welcome to Edx."
text in the captions
And I see duration "1
:
00"
# 22
Scenario
:
Download button works correctly for non-english transcript in Youtube mode of Video component
Given
I am registered for the course
"test_course"
And
I have a
"chinese_transcripts.srt"
transcript file in assets
...
...
@@ -249,7 +248,7 @@ Feature: LMS Video component
And
I see
"好 各位同学"
text in the captions
Then
I can download transcript in
"srt"
format that has text
"好 各位同学"
# 2
2
# 2
3
Scenario
:
Download button works correctly for non-english transcript in HTML5 mode of Video component
Given
I am registered for the course
"test_course"
And
I have a
"chinese_transcripts.srt"
transcript file in assets
...
...
@@ -263,7 +262,7 @@ Feature: LMS Video component
And
I see
"好 各位同学"
text in the captions
Then
I can download transcript in
"srt"
format that has text
"好 各位同学"
# 2
3
# 2
4
Scenario
:
Download button works correctly w/o english transcript in HTML5 mode of Video component
Given
I am registered for the course
"test_course"
And
I have a
"chinese_transcripts.srt"
transcript file in assets
...
...
@@ -273,7 +272,7 @@ Feature: LMS Video component
And
I see
"好 各位同学"
text in the captions
Then
I can download transcript in
"srt"
format that has text
"好 各位同学"
# 2
4
# 2
5
Scenario
:
Download button works correctly w/o english transcript in Youtube mode of Video component
Given
I am registered for the course
"test_course"
And
I have a
"chinese_transcripts.srt"
transcript file in assets
...
...
@@ -283,7 +282,7 @@ Feature: LMS Video component
And
I see
"好 各位同学"
text in the captions
Then
I can download transcript in
"srt"
format that has text
"好 各位同学"
# 2
5
# 2
6
Scenario
:
Verify that each video in each sub-section includes a transcript for non-Youtube countries.
Given
youtube server is up and response time is 2 seconds
And
I am registered for the course
"test_course"
...
...
lms/djangoapps/courseware/features/video.py
View file @
70db47a7
...
...
@@ -473,7 +473,7 @@ def start_playing_video_from_n_seconds(_step, position):
def
i_see_duration
(
_step
,
position
):
world
.
wait_for
(
func
=
lambda
_
:
duration
()
==
parse_time_str
(
position
),
timeout
=
5
timeout
=
30
)
...
...
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