diff --git a/pyscript.core/tests/integration/support.py b/pyscript.core/tests/integration/support.py index dd8d2235..889279fb 100644 --- a/pyscript.core/tests/integration/support.py +++ b/pyscript.core/tests/integration/support.py @@ -471,9 +471,7 @@ class PyScriptTest: self.logger.log( "wait_for_pyscript", f"Waited for {elapsed_ms/1000:.2f} s", color="yellow" ) - # We still don't know why this wait is necessary, but without it - # events aren't being triggered in the tests. - self.page.wait_for_timeout(100) + self.page.wait_for_selector("html.all-done") SCRIPT_TAG_REGEX = re.compile('( """ ) @@ -59,9 +57,8 @@ class TestConfig(PyScriptTest): """ )