From 7ff3c4b3fbd39b6d0eba6504b82df276d70a7db8 Mon Sep 17 00:00:00 2001 From: cahrens Date: Fri, 6 May 2016 13:36:45 -0400 Subject: [PATCH] Verify New Cohort form is rendered. TNL-2257 --- common/test/acceptance/pages/lms/instructor_dashboard.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/test/acceptance/pages/lms/instructor_dashboard.py b/common/test/acceptance/pages/lms/instructor_dashboard.py index 9bf3c53741..0de7cafdcb 100644 --- a/common/test/acceptance/pages/lms/instructor_dashboard.py +++ b/common/test/acceptance/pages/lms/instructor_dashboard.py @@ -315,6 +315,14 @@ class CohortManagementSection(PageObject): # There are 2 create buttons on the page. The second one is only present when no cohort yet exists # (in which case the first is not visible). Click on the last present create button. create_buttons.results[len(create_buttons.results) - 1].click() + + # Both the edit and create forms have an element with id="cohort-name". Verify that the create form + # has been rendered. + self.wait_for( + lambda: "Add a New Cohort" in self.q(css=self._bounded_selector(".form-title")).text, + "Create cohort form is visible" + ) + textinput = self.q(css=self._bounded_selector("#cohort-name")).results[0] textinput.send_keys(cohort_name)