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
59ca4774
Commit
59ca4774
authored
Mar 19, 2014
by
polesye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky acceptance test.
parent
4fc71c1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lms/djangoapps/courseware/features/video.py
+7
-7
No files found.
lms/djangoapps/courseware/features/video.py
View file @
59ca4774
...
...
@@ -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
)
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