Commit 4a08e99b by Jonathan Piacenti

Fixup for cohort message tests.

parent ed89d464
......@@ -303,7 +303,7 @@ class MembershipPageCohortManagementSection(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