Commit acae281f by Ben Patterson

Merge pull request #11677 from edx/benp/tnl-4151-fix2

Ensuring page is loaded belongs in the page object.
parents 650c95f9 18e1aaa3
......@@ -15,7 +15,7 @@ class DashboardPage(PageObject):
url = BASE_URL + "/course/"
def is_browser_on_page(self):
return self.q(css='body.view-dashboard').present
return self.q(css='.content-primary').visible
@property
def course_runs(self):
......
......@@ -49,7 +49,6 @@ class CreateLibraryTest(WebAppTest):
self.auth_page.visit()
self.dashboard_page.visit()
self.dashboard_page.wait_for_element_visibility('.content-primary', 'See library list.')
self.assertFalse(self.dashboard_page.has_library(name=name, org=org, number=number))
self.assertTrue(self.dashboard_page.has_new_library_button())
......
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