new list item valid test completed, even if it doesn't yet pass

This commit is contained in:
Disco DeDisco
2026-01-14 13:43:58 -05:00
parent 291025c13f
commit 9909691a7e
2 changed files with 38 additions and 2 deletions

View File

@@ -30,4 +30,13 @@ class FunctionalTest(StaticLiveServerTestCase):
if time.time() - start_time > MAX_WAIT:
raise
time.sleep(0.5)
def wait_for(self, fn):
start_time = time.time()
while True:
try:
return fn()
except (AssertionError, WebDriverException):
if time.time() - start_time > MAX_WAIT:
raise
time.sleep(0.5)