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
fc45b2c8
Commit
fc45b2c8
authored
Jan 22, 2016
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11292 from edx/zoldak/phantom-bok-choy
Harden page objects
parents
d2eaa633
6fc490e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
common/test/acceptance/pages/lms/learner_profile.py
+4
-1
common/test/acceptance/pages/studio/overview.py
+5
-1
common/test/acceptance/pages/studio/settings_group_configurations.py
+4
-11
No files found.
common/test/acceptance/pages/lms/learner_profile.py
View file @
fc45b2c8
...
...
@@ -43,7 +43,10 @@ class LearnerProfilePage(FieldsMixin, PageObject):
"""
Check if browser is showing correct page.
"""
return
self
.
q
(
css
=
'body.view-profile .account-settings-container'
)
.
present
return
all
([
self
.
q
(
css
=
'body.view-profile .account-settings-container'
)
.
present
,
not
self
.
q
(
css
=
'ui-loading-indicator'
)
.
visible
])
@property
def
privacy
(
self
):
...
...
common/test/acceptance/pages/studio/overview.py
View file @
fc45b2c8
...
...
@@ -454,7 +454,11 @@ 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
and
self
.
q
(
css
=
'div.ui-loading.is-hidden'
)
.
present
return
all
([
self
.
q
(
css
=
'body.view-outline'
)
.
present
,
self
.
q
(
css
=
'.content-primary'
)
.
present
,
self
.
q
(
css
=
'div.ui-loading.is-hidden'
)
.
present
])
def
view_live
(
self
):
"""
...
...
common/test/acceptance/pages/studio/settings_group_configurations.py
View file @
fc45b2c8
...
...
@@ -19,17 +19,10 @@ class GroupConfigurationsPage(CoursePage):
"""
Verify that the browser is on the page and it is not still loading.
"""
EmptyPromise
(
lambda
:
self
.
q
(
css
=
'body.view-group-configurations'
)
.
present
,
'On the group configuration page'
)
.
fulfill
()
EmptyPromise
(
lambda
:
not
self
.
q
(
css
=
'span.spin'
)
.
visible
,
'Group Configurations are finished loading'
)
.
fulfill
()
return
True
return
all
([
self
.
q
(
css
=
'body.view-group-configurations'
)
.
present
,
self
.
q
(
css
=
'div.ui-loading.is-hidden'
)
.
present
])
@property
def
experiment_group_configurations
(
self
):
...
...
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