Commit 07c5bbd9 by Ben Patterson

Look for a consistent css class.

The former class, while less-flaky, does not always appear. (For example, if cohorts
are being toggled off.) This css class always appears. Initial findings point to
flakiness being a non-issue if we look for this class.
parent 513bb5d0
......@@ -127,7 +127,7 @@ class CohortManagementSection(PageObject):
return self.q(css='.message-title').text[0] == u'You currently have no cohorts configured'
# The page may be in either the traditional management state, or an 'add new cohort' state.
# Confirm the CSS class is visible because the CSS class can exist on the page even in different states.
return self.q(css='.cohort-management-nav').visible or self.q(css='.new-cohort-form').visible
return self.q(css='.cohorts-state-section').visible or self.q(css='.new-cohort-form').visible
def _bounded_selector(self, selector):
"""
......
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