Skip to content

Commit 037b3fb

Browse files
committed
test_call_script: Poll for the last external function to be defined
1 parent 771437d commit 037b3fb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/integration/test_call_script.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ def assert_token(driver: WebDriver) -> str:
406406
"""
407407
ss = SessionStorage(driver)
408408
assert AppHarness._poll_for(lambda: ss.get("token") is not None), "token not found"
409+
assert AppHarness._poll_for(
410+
lambda: driver.execute_script("return typeof external4 !== 'undefined'")
411+
), "scripts not loaded"
409412
return ss.get("token")
410413

411414

0 commit comments

Comments
 (0)