Commit dffe3e07 by Jesse Shapiro

Update wait for mini-notification in testing to be more fine-grained; remove flaky test decorator

parent f05899b2
......@@ -17,8 +17,18 @@ def wait_for_notification(page):
"""Whether or not the notification is finished showing."""
return page.q(css='.wrapper-notification-mini.is-hiding').present
EmptyPromise(_is_saving, 'Notification should have been shown.', timeout=60).fulfill()
EmptyPromise(_is_saving_done, 'Notification should have been hidden.', timeout=60).fulfill()
EmptyPromise(
_is_saving,
'Notification should have been shown.',
try_interval=0.1,
timeout=60,
).fulfill()
EmptyPromise(
_is_saving_done,
'Notification should have been hidden.',
try_interval=0.1,
timeout=60,
).fulfill()
def click_css(page, css, source_index=0, require_notification=True):
......
......@@ -129,7 +129,6 @@ class LibraryEditPageTest(StudioLibraryTest):
"""
self.assertFalse(self.browser.find_elements_by_css_selector('span.large-discussion-icon'))
@flaky # TODO fix this, see TNL-2322
def test_library_pagination(self):
"""
Scenario: Ensure that adding several XBlocks to a library results in pagination.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment