Skip to content

Commit 5219744

Browse files
committed
Attempt different way of setting max timeout
1 parent 3f92746 commit 5219744

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/reactpy/testing/display.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ async def __aenter__(self) -> DisplayFixture:
7373
async def configure_page(self) -> None:
7474
if getattr(self, "page", None) is None:
7575
self.page = await self.browser.new_page()
76+
self.page.set_default_navigation_timeout(self.timeout * 1000)
7677
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)
7780
self.page.on("console", lambda msg: print(f"BROWSER CONSOLE: {msg.text}")) # noqa: T201
7881
self.page.on("pageerror", lambda exc: print(f"BROWSER ERROR: {exc}")) # noqa: T201
7982

0 commit comments

Comments
 (0)