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
55fde6e5
Commit
55fde6e5
authored
Oct 02, 2013
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated acceptance tests.
parent
1f840530
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
9 deletions
+27
-9
cms/djangoapps/contentstore/features/video.feature
+15
-5
cms/djangoapps/contentstore/features/video.py
+12
-4
No files found.
cms/djangoapps/contentstore/features/video.feature
View file @
55fde6e5
...
...
@@ -45,16 +45,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
Then
Captions become invisible
after 3 seconds
And
Hover over CC button
Then
Captions become visible
Then
Captions become visible after 0 seconds
And
Hover over volume button
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
become visible
Then
Captions
are visible after 0 seconds
And
Hover over CC button
Then
Captions become visible
Then
Captions are visible after 3 seconds
And
Hover over volume button
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
And
Hover over volume button
Then
Captions
become visible
Then
Captions
are invisible after 0 seconds
cms/djangoapps/contentstore/features/video.py
View file @
55fde6e5
...
...
@@ -127,13 +127,21 @@ def hover_over_button(_step, button):
world
.
browser
.
find_by_css
(
'.volume'
)
.
mouse_over
()
@step
(
'Captions become (.+)$'
)
def
captions_become_visible
(
_step
,
visibility_state
):
# Captions become invisible by fading out. We must wait.
world
.
wait
(
2
)
@step
(
'Captions become (.+) after (.+) seconds$'
)
def
check_captions_visibility_state
(
_step
,
visibility_state
,
timeout
):
timeout
=
int
(
timeout
.
strip
())
# Captions become invisible by fading out. We must wait by a specified
# time.
world
.
wait
(
timeout
)
if
visibility_state
==
'visible'
:
assert
world
.
css_visible
(
'.subtitles'
)
else
:
assert
not
world
.
css_visible
(
'.subtitles'
)
@step
(
'Captions are (.+) after (.+) seconds$'
)
def
check_captions_visibility_state2
(
_step
,
visibility_state
,
timeout
):
check_captions_visibility_state
(
_step
,
visibility_state
,
timeout
)
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