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
367bdf18
Commit
367bdf18
authored
Aug 11, 2014
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve stability of test_studio_outline tests.
STUD-2084
parent
05bddae3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
+12
-1
common/test/acceptance/pages/studio/container.py
+9
-0
common/test/acceptance/pages/studio/overview.py
+1
-1
common/test/acceptance/pages/studio/utils.py
+2
-0
No files found.
common/test/acceptance/pages/studio/container.py
View file @
367bdf18
...
...
@@ -55,6 +55,15 @@ class ContainerPage(PageObject):
Promise
(
_is_finished_loading
,
'Finished rendering the xblock wrappers.'
)
.
fulfill
()
)
def
wait_for_component_menu
(
self
):
"""
Waits until the menu bar of components is present on the page.
"""
EmptyPromise
(
lambda
:
self
.
q
(
css
=
'div.add-xblock-component'
)
.
present
,
'Wait for the menu of components to be present'
)
.
fulfill
()
@property
def
xblocks
(
self
):
"""
...
...
common/test/acceptance/pages/studio/overview.py
View file @
367bdf18
...
...
@@ -345,7 +345,7 @@ class CourseOutlinePage(CoursePage, CourseOutlineContainer):
BOTTOM_ADD_SECTION_BUTTON
=
'.outline > .add-section .button-new'
def
is_browser_on_page
(
self
):
return
self
.
q
(
css
=
'body.view-outline'
)
.
present
return
self
.
q
(
css
=
'body.view-outline'
)
.
present
and
self
.
q
(
css
=
'div.ui-loading.is-hidden'
)
.
present
def
view_live
(
self
):
"""
...
...
common/test/acceptance/pages/studio/utils.py
View file @
367bdf18
...
...
@@ -69,6 +69,7 @@ def add_discussion(page, menu_index=0):
menu_index specifies which instance of the menus should be used (based on vertical
placement within the page).
"""
page
.
wait_for_component_menu
()
click_css
(
page
,
'a>span.large-discussion-icon'
,
menu_index
)
...
...
@@ -80,6 +81,7 @@ def add_advanced_component(page, menu_index, name):
placement within the page).
"""
# Click on the Advanced icon.
page
.
wait_for_component_menu
()
click_css
(
page
,
'a>span.large-advanced-icon'
,
menu_index
,
require_notification
=
False
)
# This does an animation to hide the first level of buttons
...
...
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