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
e9251713
Commit
e9251713
authored
Apr 14, 2016
by
Muddasser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed button click issue while repacing subtitles.
parent
a2c686cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
common/test/acceptance/pages/studio/video/video.py
+8
-0
common/test/acceptance/tests/video/test_studio_video_transcript.py
+1
-1
No files found.
common/test/acceptance/pages/studio/video/video.py
View file @
e9251713
...
@@ -10,6 +10,7 @@ from ....tests.helpers import YouTubeStubConfig
...
@@ -10,6 +10,7 @@ from ....tests.helpers import YouTubeStubConfig
from
...lms.video.video
import
VideoPage
from
...lms.video.video
import
VideoPage
from
...common.utils
import
wait_for_notification
from
...common.utils
import
wait_for_notification
from
selenium.webdriver.common.keys
import
Keys
from
selenium.webdriver.common.keys
import
Keys
from
selenium.webdriver.common.action_chains
import
ActionChains
CLASS_SELECTORS
=
{
CLASS_SELECTORS
=
{
...
@@ -135,6 +136,13 @@ class VideoComponentPage(VideoPage):
...
@@ -135,6 +136,13 @@ class VideoComponentPage(VideoPage):
"""
"""
return
self
.
q
(
css
=
CLASS_SELECTORS
[
'video_controls'
])
.
visible
return
self
.
q
(
css
=
CLASS_SELECTORS
[
'video_controls'
])
.
visible
def
click_button_subtitles
(
self
):
"""
Click .setting-replace button after first hovering to it.
"""
element
=
self
.
q
(
css
=
'.setting-replace'
)[
0
]
ActionChains
(
self
.
browser
)
.
move_to_element
(
element
)
.
click
(
element
)
.
perform
()
def
click_button
(
self
,
button_name
,
index
=
0
,
require_notification
=
False
):
def
click_button
(
self
,
button_name
,
index
=
0
,
require_notification
=
False
):
"""
"""
Click on a button as specified by `button_name`
Click on a button as specified by `button_name`
...
...
common/test/acceptance/tests/video/test_studio_video_transcript.py
View file @
e9251713
...
@@ -177,7 +177,7 @@ class VideoTranscriptTest(CMSVideoBaseTest):
...
@@ -177,7 +177,7 @@ class VideoTranscriptTest(CMSVideoBaseTest):
self
.
video
.
set_url_field
(
'http://youtu.be/t_neq_exist'
,
1
)
self
.
video
.
set_url_field
(
'http://youtu.be/t_neq_exist'
,
1
)
self
.
assertEqual
(
self
.
video
.
message
(
'status'
),
'Timed Transcript Conflict'
)
self
.
assertEqual
(
self
.
video
.
message
(
'status'
),
'Timed Transcript Conflict'
)
self
.
assertTrue
(
self
.
video
.
is_transcript_button_visible
(
'replace'
))
self
.
assertTrue
(
self
.
video
.
is_transcript_button_visible
(
'replace'
))
self
.
video
.
click_button
(
'replace'
)
self
.
video
.
click_button
_subtitles
(
)
self
.
assertEqual
(
self
.
video
.
message
(
'status'
),
'Timed Transcript Found'
)
self
.
assertEqual
(
self
.
video
.
message
(
'status'
),
'Timed Transcript Found'
)
self
.
open_advanced_tab
()
self
.
open_advanced_tab
()
self
.
assertTrue
(
self
.
video
.
verify_field_value
(
'Default Timed Transcript'
,
't_neq_exist'
))
self
.
assertTrue
(
self
.
video
.
verify_field_value
(
'Default Timed Transcript'
,
't_neq_exist'
))
...
...
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