Fix flaky test. SOL-975

Remove flaky flag, improve linting.
This commit is contained in:
Ben Patterson
2015-06-19 20:17:29 -04:00
parent e9c84503f6
commit 2ee4b85ffc
2 changed files with 9 additions and 2 deletions

View File

@@ -15,7 +15,15 @@ class CourseDiscoveryPage(PageObject):
form = "#discovery-form"
def is_browser_on_page(self):
return "Courses" in self.browser.title
"""
Loading indicator must be present, but not visible
"""
loading_css = "#loading-indicator"
courses_css = '.courses-listing'
return self.q(css=courses_css).visible \
and self.q(css=loading_css).present \
and not self.q(css=loading_css).visible
@property
def result_items(self):

View File

@@ -72,7 +72,6 @@ class CourseDiscoveryTest(WebAppTest):
"""
self.page.visit()
@flaky # TODO: fix this. See SOL-975
def test_search(self):
"""
Make sure you can search for courses.