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
1f840530
Commit
1f840530
authored
Oct 02, 2013
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated acceptance tests.
parent
e1e0cba0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
cms/djangoapps/contentstore/features/video.feature
+2
-0
cms/djangoapps/contentstore/features/video.py
+7
-4
No files found.
cms/djangoapps/contentstore/features/video.feature
View file @
1f840530
...
...
@@ -56,3 +56,5 @@ Feature: CMS.Video Component
Then
Captions become visible
And
Hover over CC button
Then
Captions become visible
And
Hover over volume button
Then
Captions become visible
cms/djangoapps/contentstore/features/video.py
View file @
1f840530
...
...
@@ -110,7 +110,7 @@ def the_youtube_video_is_shown(_step):
@step
(
'Make sure captions are (.+)$'
)
def
make_sure_captions_are_closed
(
_step
,
captions_state
):
def
set_captions_visibility_state
(
_step
,
captions_state
):
if
captions_state
==
'closed'
:
if
world
.
css_visible
(
'.subtitles'
):
world
.
browser
.
find_by_css
(
'.hide-subtitles'
)
.
click
()
...
...
@@ -119,9 +119,12 @@ def make_sure_captions_are_closed(_step, captions_state):
world
.
browser
.
find_by_css
(
'.hide-subtitles'
)
.
click
()
@step
(
'Hover over CC button$'
)
def
hover_over_cc_button
(
_step
):
world
.
browser
.
find_by_css
(
'.hide-subtitles'
)
.
mouse_over
()
@step
(
'Hover over (.+) button$'
)
def
hover_over_button
(
_step
,
button
):
if
button
.
strip
()
==
'CC'
:
world
.
browser
.
find_by_css
(
'.hide-subtitles'
)
.
mouse_over
()
else
:
world
.
browser
.
find_by_css
(
'.volume'
)
.
mouse_over
()
@step
(
'Captions become (.+)$'
)
...
...
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