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
a667349d
Commit
a667349d
authored
Oct 04, 2013
by
polesye
Committed by
Valera Rozuvan
Oct 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix acceptance tests.
parent
f57d5a61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
cms/djangoapps/contentstore/features/video.feature
+8
-8
cms/djangoapps/contentstore/features/video.py
+4
-4
No files found.
cms/djangoapps/contentstore/features/video.feature
View file @
a667349d
...
...
@@ -46,26 +46,26 @@ Feature: CMS.Video Component
Scenario
:
Closed captions become visible when the mouse hovers over CC button
Given
I have created a Video component with subtitles
And
Make sure captions are closed
Then
Captions become
invisible
after 3 seconds
Then
Captions become
"invisible"
after 3 seconds
And
I hover over button
"CC"
Then
Captions become
visible
Then
Captions become
"visible"
And
I hover over button
"volume"
Then
Captions become
invisible
after 3 seconds
Then
Captions become
"invisible"
after 3 seconds
# 8
Scenario
:
Open captions never become invisible
Given
I have created a Video component with subtitles
And
Make sure captions are open
Then
Captions are
visible
Then
Captions are
"visible"
And
I hover over button
"CC"
Then
Captions are
visible
after 3 seconds
Then
Captions are
"visible"
after 3 seconds
And
I hover over button
"volume"
Then
Captions are
visible
after 3 seconds
Then
Captions are
"visible"
after 3 seconds
# 9
Scenario
:
Closed captions are invisible when mouse doesn't hover on CC button
Given
I have created a Video component with subtitles
And
Make sure captions are closed
Then
Captions become
invisible
after 3 seconds
Then
Captions become
"invisible"
after 3 seconds
And
I hover over button
"volume"
Then
Captions are
invisible
Then
Captions are
"invisible"
cms/djangoapps/contentstore/features/video.py
View file @
a667349d
...
...
@@ -135,15 +135,15 @@ def set_captions_visibility_state(_step, captions_state):
@step
(
'I hover over button "([^"]*)"$'
)
def
hover_over_button
(
_step
,
button
):
world
.
browser
.
find_by_css
(
BUTTONS
[
button
.
strip
()])
.
mouse_over
()
world
.
css_find
(
BUTTONS
[
button
.
strip
()])
.
mouse_over
()
@step
(
'Captions (?:are|become)
(.+)
$'
)
@step
(
'Captions (?:are|become)
"([^"]*)"
$'
)
def
are_captions_visibile
(
_step
,
visibility_state
):
_step
.
given
(
'Captions
are {0}
after 0 seconds'
.
format
(
visibility_state
))
_step
.
given
(
'Captions
become "{0}"
after 0 seconds'
.
format
(
visibility_state
))
@step
(
'Captions (?:are|become)
(.+)
after (.+) seconds$'
)
@step
(
'Captions (?:are|become)
"([^"]*)"
after (.+) seconds$'
)
def
check_captions_visibility_state
(
_step
,
visibility_state
,
timeout
):
timeout
=
int
(
timeout
.
strip
())
...
...
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