Fixed Chrome test_user_management under LibraryUsersPageTest

This commit is contained in:
raeeschachar
2015-09-02 18:53:58 +05:00
parent 2438b27b9c
commit 70573ca859
2 changed files with 2 additions and 4 deletions

View File

@@ -33,9 +33,9 @@ class UsersPageMixin(PageObject):
def is_browser_on_page(self):
"""
Returns True iff the browser has loaded the page.
Returns True if the browser has loaded the page.
"""
return self.q(css='body.view-team').present
return self.q(css='body.view-team').present and not self.q(css='.ui-loading').present
@property
def users(self):

View File

@@ -522,9 +522,7 @@ class LibraryUsersPageTest(StudioLibraryTest):
"""
self.page = LibraryUsersPage(self.browser, self.library_key)
self.page.visit()
self.page.wait_until_no_loading_indicator()
@flaky # TODO fix this; see TNL-2647
def test_user_management(self):
"""
Scenario: Ensure that we can edit the permissions of users.