Commit 4a08e99b by Jonathan Piacenti

Fixup for cohort message tests.

parent ed89d464
...@@ -303,7 +303,7 @@ class MembershipPageCohortManagementSection(PageObject): ...@@ -303,7 +303,7 @@ class MembershipPageCohortManagementSection(PageObject):
""" """
if wait_for_messages: if wait_for_messages:
EmptyPromise( 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" "Waiting for messages to appear"
).fulfill() ).fulfill()
message_title = self.q(css=self._bounded_selector(title_css)) 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