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
44dd3603
Commit
44dd3603
authored
Nov 13, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for advanced settings failure
parent
d404cbca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
cms/djangoapps/contentstore/features/advanced_settings.py
+12
-6
No files found.
cms/djangoapps/contentstore/features/advanced_settings.py
View file @
44dd3603
...
...
@@ -13,14 +13,20 @@ DISPLAY_NAME_VALUE = '"Robot Super Course"'
@step
(
'I select the Advanced Settings$'
)
def
i_select_advanced_settings
(
step
):
world
.
click_course_settings
()
# The click handlers are set up so that if you click <body>
# the menu disappears. This means that if we're even a *little*
# bit off on the last item ('Advanced Settings'), the menu
# will close and the test will fail.
# For this reason, we retrieve the link and visit it directly
# This is what the browser *should* be doing, since it's just a native
# link with no JavaScript involved.
link_css
=
'li.nav-course-settings-advanced a'
world
.
css_click
(
link_css
)
world
.
wait_for_requirejs
(
[
"jquery"
,
"js/models/course"
,
"js/models/settings/advanced"
,
"js/views/settings/advanced"
,
"codemirror"
])
# this shouldn't be necessary, but we experience sporadic failures otherwise
world
.
wait
(
1
)
world
.
wait_for_visible
(
link_css
)
link
=
world
.
css_find
(
link_css
)
.
first
[
'href'
]
world
.
visit
(
link
)
@step
(
'I am on the Advanced Course Settings page in Studio$'
)
...
...
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