From 07c5bbd96d35797f45d8a999968e23144301390b Mon Sep 17 00:00:00 2001 From: Ben Patterson Date: Tue, 12 May 2015 13:38:03 -0400 Subject: [PATCH] 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. --- common/test/acceptance/pages/lms/instructor_dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/test/acceptance/pages/lms/instructor_dashboard.py b/common/test/acceptance/pages/lms/instructor_dashboard.py index b35e73950e..c1d1c4c043 100644 --- a/common/test/acceptance/pages/lms/instructor_dashboard.py +++ b/common/test/acceptance/pages/lms/instructor_dashboard.py @@ -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): """