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
c8dc10b2
Commit
c8dc10b2
authored
Sep 10, 2015
by
Saleem Latif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added wait for loading js files
parent
1c910cfb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
common/test/acceptance/pages/studio/settings.py
+10
-0
common/test/acceptance/tests/studio/test_studio_settings_details.py
+0
-1
No files found.
common/test/acceptance/pages/studio/settings.py
View file @
c8dc10b2
...
...
@@ -4,11 +4,13 @@ Course Schedule and Details Settings page.
"""
from
__future__
import
unicode_literals
from
bok_choy.promise
import
EmptyPromise
from
bok_choy.javascript
import
requirejs
from
.course_page
import
CoursePage
from
.utils
import
press_the_notification_button
@requirejs
(
'js/factories/settings'
)
class
SettingsPage
(
CoursePage
):
"""
Course Schedule and Details Settings page.
...
...
@@ -22,6 +24,13 @@ class SettingsPage(CoursePage):
def
is_browser_on_page
(
self
):
return
self
.
q
(
css
=
'body.view-settings'
)
.
present
def
wait_for_require_js
(
self
):
"""
Wait for require-js to load javascript files.
"""
if
hasattr
(
self
,
'wait_for_js'
):
self
.
wait_for_js
()
# pylint: disable=no-member
def
refresh_and_wait_for_load
(
self
):
"""
Refresh the page and wait for all resources to load.
...
...
@@ -182,4 +191,5 @@ class SettingsPage(CoursePage):
lambda
:
self
.
q
(
css
=
'body.view-settings'
)
.
present
,
'Page is refreshed'
)
.
fulfill
()
self
.
wait_for_require_js
()
self
.
wait_for_ajax
()
common/test/acceptance/tests/studio/test_studio_settings_details.py
View file @
c8dc10b2
...
...
@@ -40,7 +40,6 @@ class SettingsMilestonesTest(StudioCourseTest):
self
.
assertTrue
(
self
.
settings_detail
.
pre_requisite_course_options
)
@skip
# TODO: fix this. SOL-449
def
test_prerequisite_course_save_successfully
(
self
):
"""
Scenario: Selecting course from Pre-Requisite course drop down save the selected course as pre-requisite
...
...
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