Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
a2057273
Commit
a2057273
authored
11 years ago
by
Will Daly
Committed by
Brian Talbot
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix for advanced settings failure
parent
070ed198
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cms/djangoapps/contentstore/features/advanced_settings.py
+12
-6
12 additions, 6 deletions
cms/djangoapps/contentstore/features/advanced_settings.py
with
12 additions
and
6 deletions
cms/djangoapps/contentstore/features/advanced_settings.py
+
12
−
6
View file @
a2057273
...
...
@@ -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$
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment