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
3c838081
Commit
3c838081
authored
Jun 26, 2014
by
Ben McMorran
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4223 from edx/benmcmorran/increase-notification-timeout
Increases wait_for_notification timeout to 60 seconds
parents
1ce460be
400731c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
common/test/acceptance/pages/studio/utils.py
+4
-4
No files found.
common/test/acceptance/pages/studio/utils.py
View file @
3c838081
...
@@ -26,15 +26,15 @@ def wait_for_notification(page):
...
@@ -26,15 +26,15 @@ def wait_for_notification(page):
Waits for the "mini-notification" to appear and disappear on the given page (subclass of PageObject).
Waits for the "mini-notification" to appear and disappear on the given page (subclass of PageObject).
"""
"""
def
_is_saving
():
def
_is_saving
():
num_notifications
=
len
(
page
.
q
(
css
=
'.wrapper-notification-mini.is-shown'
))
num_notifications
=
page
.
q
(
css
=
'.wrapper-notification-mini.is-shown'
)
.
present
return
(
num_notifications
==
1
,
num_notifications
)
return
(
num_notifications
==
1
,
num_notifications
)
def
_is_saving_done
():
def
_is_saving_done
():
num_notifications
=
len
(
page
.
q
(
css
=
'.wrapper-notification-mini.is-hiding'
))
num_notifications
=
page
.
q
(
css
=
'.wrapper-notification-mini.is-hiding'
)
.
present
return
(
num_notifications
==
1
,
num_notifications
)
return
(
num_notifications
==
1
,
num_notifications
)
Promise
(
_is_saving
,
'Notification should have been shown.'
)
.
fulfill
()
Promise
(
_is_saving
,
'Notification should have been shown.'
,
timeout
=
60
)
.
fulfill
()
Promise
(
_is_saving_done
,
'Notification should have been hidden.'
)
.
fulfill
()
Promise
(
_is_saving_done
,
'Notification should have been hidden.'
,
timeout
=
60
)
.
fulfill
()
def
add_discussion
(
page
,
menu_index
):
def
add_discussion
(
page
,
menu_index
):
...
...
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