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
6b2874de
Commit
6b2874de
authored
Aug 22, 2014
by
Muhammad Ammar
Committed by
muhammad-ammar
Aug 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bok-Choy Video Transcript tests Batch3
parent
f3d76e69
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
258 deletions
+20
-258
cms/djangoapps/contentstore/features/transcripts.feature
+0
-257
common/test/acceptance/pages/studio/video/video.py
+20
-1
common/test/acceptance/tests/video/test_studio_video_transcript.py
+0
-0
No files found.
cms/djangoapps/contentstore/features/transcripts.feature
View file @
6b2874de
This diff is collapsed.
Click to expand it.
common/test/acceptance/pages/studio/video/video.py
View file @
6b2874de
...
...
@@ -503,7 +503,6 @@ class VideoComponentPage(VideoPage):
self
.
click_button
(
'collapse_link'
)
self
.
q
(
css
=
CLASS_SELECTORS
[
'url_inputs'
])
.
nth
(
field_number
-
1
)
.
fill
(
url
)
time
.
sleep
(
DELAY
)
self
.
wait_for_ajax
()
...
...
@@ -548,6 +547,19 @@ class VideoComponentPage(VideoPage):
return
statuses
def
clear_field
(
self
,
index
):
"""
Clear a video url field at index specified by `index`.
"""
self
.
q
(
css
=
CLASS_SELECTORS
[
'url_inputs'
])
.
nth
(
index
-
1
)
.
fill
(
''
)
# Trigger an 'input' event after filling the field with an empty value.
self
.
browser
.
execute_script
(
"$('{}:eq({})').trigger('{}')"
.
format
(
CLASS_SELECTORS
[
'url_inputs'
],
index
,
'input'
))
time
.
sleep
(
DELAY
)
self
.
wait_for_ajax
()
def
clear_fields
(
self
):
"""
Clear video url fields.
...
...
@@ -563,6 +575,13 @@ class VideoComponentPage(VideoPage):
time
.
sleep
(
DELAY
)
self
.
wait_for_ajax
()
def
revert_field
(
self
,
field_name
):
"""
Revert a field.
"""
_
,
setting
=
self
.
_get_setting_entry
(
field_name
)
setting
.
find_element_by_class_name
(
'setting-clear'
)
.
click
()
def
is_transcript_button_visible
(
self
,
button_name
,
index
=
0
,
button_text
=
None
):
"""
Check if a transcript related button is visible.
...
...
common/test/acceptance/tests/video/test_studio_video_transcript.py
View file @
6b2874de
This diff is collapsed.
Click to expand it.
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