in pages/desktop/frontend/users.py [0:0]
def notification_text(self):
self.wait.until(
EC.visibility_of_element_located(self._notification_text_locator)
)
items = self.find_elements(*self._notification_text_locator)
# the notifications endpoint takes a bit longer to respond, so a wait is helpful here
self.wait.until(
lambda _: len(items) > 0,
message=f"Expected notifications list to be loaded but the list contains {len(items)} items",
)
return items