We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f92746 commit 5219744Copy full SHA for 5219744
src/reactpy/testing/display.py
@@ -73,7 +73,10 @@ async def __aenter__(self) -> DisplayFixture:
73
async def configure_page(self) -> None:
74
if getattr(self, "page", None) is None:
75
self.page = await self.browser.new_page()
76
+ self.page.set_default_navigation_timeout(self.timeout * 1000)
77
self.page.set_default_timeout(self.timeout * 1000)
78
+ self.page.context.set_default_navigation_timeout(self.timeout * 1000)
79
+ self.page.context.set_default_timeout(self.timeout * 1000)
80
self.page.on("console", lambda msg: print(f"BROWSER CONSOLE: {msg.text}")) # noqa: T201
81
self.page.on("pageerror", lambda exc: print(f"BROWSER ERROR: {exc}")) # noqa: T201
82
0 commit comments