Wait for element to not be present. (Compatible with minor bok-choy upgrade.)

With an upcoming bok-choy upgrade, 'not-present' and
'invisible' are two distinct concepts. In the upgrade, an
invisible element must be present on the page. This commit
draws that distinction across two helper methods, one for
'invisible' and the other for 'not-present' (or, not on the page at all).
This commit is contained in:
Ben Patterson
2015-06-22 21:47:36 -04:00
parent 8934818381
commit c39ebf1bc8
3 changed files with 26 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ class CourseTeamPageTest(StudioCourseTest):
def _go_to_course_team_page(self):
""" Opens Course Team page """
self.page.visit()
self.page.wait_until_ready()
self.page.wait_until_no_loading_indicator()
def _refresh_page(self):
"""

View File

@@ -523,7 +523,7 @@ class LibraryUsersPageTest(StudioLibraryTest):
"""
self.page = LibraryUsersPage(self.browser, self.library_key)
self.page.visit()
self.page.wait_until_ready()
self.page.wait_until_no_loading_indicator()
@flaky # TODO fix this; see TNL-2647
def test_user_management(self):