Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
5a399e21
Commit
5a399e21
authored
11 years ago
by
Anton Stupak
Browse files
Options
Downloads
Plain Diff
Merge pull request #2982 from edx/anton/fix-acceptance-test
Video: Fix flaky acceptance test.
parents
4fc71c1d
59ca4774
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/courseware/features/video.py
+7
-7
7 additions, 7 deletions
lms/djangoapps/courseware/features/video.py
with
7 additions
and
7 deletions
lms/djangoapps/courseware/features/video.py
+
7
−
7
View file @
5a399e21
...
...
@@ -437,8 +437,7 @@ def video_alignment(_step, transcript_visibility):
@step
(
'
I can download transcript in
"
([^
"
]*)
"
format and has text
"
([^
"
]*)
"
$
'
)
def
i_can_download_transcript
(
_step
,
format
,
text
):
button
=
world
.
css_find
(
'
.video-tracks .a11y-menu-button
'
).
first
assert
button
.
text
.
strip
()
==
'
.
'
+
format
assert
world
.
css_has_text
(
'
.video-tracks .a11y-menu-button
'
,
'
.
'
+
format
,
strip
=
True
)
formats
=
{
'
srt
'
:
'
application/x-subrip
'
,
...
...
@@ -454,13 +453,14 @@ def i_can_download_transcript(_step, format, text):
@step
(
'
I select the transcript format
"
([^
"
]*)
"
$
'
)
def
select_transcript_format
(
_step
,
format
):
button
=
world
.
css_find
(
'
.video-tracks .a11y-menu-button
'
).
first
button_selector
=
'
.video-tracks .a11y-menu-button
'
menu_selector
=
VIDEO_MENUS
[
'
download_transcript
'
]
button
=
world
.
css_find
(
button_selector
).
first
button
.
mouse_over
()
assert
button
.
text
.
strip
()
==
'
...
'
assert
world
.
css_has_text
(
button_selector
,
'
...
'
,
strip
=
True
)
menu_selector
=
VIDEO_MENUS
[
'
download_transcript
'
]
menu_items
=
world
.
css_find
(
menu_selector
+
'
a
'
)
for
item
in
menu_items
:
if
item
[
'
data-value
'
]
==
format
:
item
.
click
()
...
...
@@ -468,4 +468,4 @@ def select_transcript_format(_step, format):
break
assert
world
.
css_find
(
menu_selector
+
'
.active a
'
)[
0
][
'
data-value
'
]
==
format
assert
button
.
text
.
strip
()
==
'
.
'
+
format
assert
world
.
css_has_text
(
button_selector
,
'
.
'
+
format
,
strip
=
True
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment