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
a8fe4151
Commit
a8fe4151
authored
Oct 23, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait for js/base in CMS acceptance tests to ensure click handlers are
installed.
parent
cda168da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
14 deletions
+16
-14
cms/djangoapps/contentstore/features/common.py
+1
-0
cms/djangoapps/contentstore/features/video.feature
+11
-10
common/djangoapps/terrain/ui_helpers.py
+4
-4
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
a8fe4151
...
...
@@ -252,6 +252,7 @@ def create_course_with_unit():
log_into_studio
()
world
.
css_click
(
'a.course-link'
)
world
.
wait_for_js_to_load
()
css_selectors
=
[
'div.section-item a.expand-collapse-icon'
,
'a.new-unit-item'
]
...
...
cms/djangoapps/contentstore/features/video.feature
View file @
a8fe4151
...
...
@@ -79,18 +79,19 @@ Feature: CMS.Video Component
And
I see caption line with data-index 0 has class
"focused"
# 11
Scenario
:
When
start end end times are specified, a range on slider is shown
Given
I have created a Video component
And
Make sure captions are closed
And
I edit the component
And
I open tab
"Advanced"
And
I set value
"12"
to the field
"Start Time"
And
I set value
"24"
to the field
"End Time"
And
I save changes
And
I click video button
"Play"
# Disabled until we come up with a more solid test, as this one is brittle.
# Scenario: When start end end times are specified, a range on slider is shown
# Given I have created a Video component
# And Make sure captions are closed
# And I edit the component
# And I open tab "Advanced"
# And I set value "12" to the field "Start Time"
# And I set value "24" to the field "End Time"
# And I save changes
# And I click video button "Play"
# The below line is a bit flaky. Numbers 73 and 73 were determined rather
# accidentally. They might change in the future as Video player gets CSS
# updates. If this test starts failing, 99.9% cause of failure is the line
# below.
Then
I see a range on slider with styles
"left"
set to 73 px and
"width"
set to 73 px
#
Then I see a range on slider with styles "left" set to 73 px and "width" set to 73 px
common/djangoapps/terrain/ui_helpers.py
View file @
a8fe4151
...
...
@@ -21,23 +21,23 @@ from nose.tools import assert_true # pylint: disable=E0611
REQUIREJS_WAIT
=
{
# Settings - Schedule & Details
re
.
compile
(
'^Schedule & Details Settings
\
|'
):
[
"jquery"
,
"js/models/course"
,
"jquery"
,
"js/
base"
,
"js/
models/course"
,
"js/models/settings/course_details"
,
"js/views/settings/main"
],
# Settings - Advanced Settings
re
.
compile
(
'^Advanced Settings
\
|'
):
[
"jquery"
,
"js/models/course"
,
"js/models/settings/advanced"
,
"jquery"
,
"js/
base"
,
"js/
models/course"
,
"js/models/settings/advanced"
,
"js/views/settings/advanced"
,
"codemirror"
],
# Individual Unit (editing)
re
.
compile
(
'^Individual Unit
\
|'
):
[
"coffee/src/models/module"
,
"coffee/src/views/unit"
,
"
js/base"
,
"
coffee/src/models/module"
,
"coffee/src/views/unit"
,
"coffee/src/views/module_edit"
],
# Content - Outline
# Note that calling your org, course number, or display name, 'course' will mess this up
re
.
compile
(
'^Course Outline
\
|'
):
[
"js/models/course"
,
"js/models/location"
,
"js/models/section"
,
"js/
base"
,
"js/
models/course"
,
"js/models/location"
,
"js/models/section"
,
"js/views/overview"
,
"js/views/section_edit"
],
# Dashboard
...
...
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