Fix flaky test. SOL-975
Remove flaky flag, improve linting.
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user