Browse Source

test(crons): wait for monitor-checkin-tick (#71480)

Sometimes this seems flake-y. Let's wait for it instead of asserting
Evan Purkhiser 9 months ago
parent
commit
bf2e379d4e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      tests/acceptance/test_organization_monitors.py

+ 1 - 2
tests/acceptance/test_organization_monitors.py

@@ -113,8 +113,7 @@ class OrganizationMontorsTest(AcceptanceTestCase):
         self.browser.get(self.path)
         self.browser.wait_until_not('[data-test-id="loading-indicator"]')
         self.browser.wait_until(xpath="//a//*[text()='My Monitor']")
-
-        assert self.browser.element_exists_by_test_id("monitor-checkin-tick")
+        self.browser.wait_until('[data-test-id="monitor-checkin-tick"]')
 
     def test_edit_monitor(self):
         Monitor.objects.create(