Commit c72cc5dc by Jesse Zoldak

Merge pull request #7062 from edx/benp/cohort-mgmt-flaky

Flakiness fix for cohort group selection TNL-1479
parents de64bfa0 d7cbe469
......@@ -161,6 +161,11 @@ class MembershipPageCohortManagementSection(PageObject):
self._get_cohort_options().filter(
lambda el: self._cohort_name(el.text) == cohort_name
).first.click()
# wait for cohort to render as selected on screen
EmptyPromise(
lambda: self.q(css='.title-value').text[0] == cohort_name,
"Waiting to confirm cohort has been selected"
).fulfill()
def add_cohort(self, cohort_name, content_group=None):
"""
......
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