Commit 2ee4b85f by Ben Patterson

Fix flaky test. SOL-975

Remove flaky flag, improve linting.
parent e9c84503
...@@ -15,7 +15,15 @@ class CourseDiscoveryPage(PageObject): ...@@ -15,7 +15,15 @@ class CourseDiscoveryPage(PageObject):
form = "#discovery-form" form = "#discovery-form"
def is_browser_on_page(self): 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 @property
def result_items(self): def result_items(self):
......
...@@ -72,7 +72,6 @@ class CourseDiscoveryTest(WebAppTest): ...@@ -72,7 +72,6 @@ class CourseDiscoveryTest(WebAppTest):
""" """
self.page.visit() self.page.visit()
@flaky # TODO: fix this. See SOL-975
def test_search(self): def test_search(self):
""" """
Make sure you can search for courses. Make sure you can search for courses.
......
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