Commit 5615f0bf by Ben Patterson

Merge pull request #7494 from edx/benp/flag-cohort-test-flaky

Fix empty promise. It was always evaluating to true.
parents 44235108 dae5cdfc
......@@ -400,7 +400,7 @@ class CohortManagementSection(PageObject):
"""
if wait_for_messages:
EmptyPromise(
lambda: self.q(css=self._bounded_selector(title_css)).results != 0,
lambda: len(self.q(css=self._bounded_selector(title_css)).results) != 0,
"Waiting for messages to appear"
).fulfill()
message_title = self.q(css=self._bounded_selector(title_css))
......
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