From fdc35ce3edbc9c4b505e8b65d21ed0a665f3594f Mon Sep 17 00:00:00 2001 From: Andrea Giammarchi Date: Fri, 29 Sep 2023 15:24:20 +0200 Subject: [PATCH] Add a selector to the HTML tag + export config (#1773) --- pyscript.core/tests/integration/support.py | 14 ++++++-------- .../tests/integration/test_02_display.py | 2 +- pyscript.core/tests/integration/test_py_config.py | 15 ++++++--------- 3 files changed, 13 insertions(+), 18 deletions(-) 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): """ )