Adding default timeouts of 5s

This commit is contained in:
Collin Duncan 2024-02-23 07:35:04 -06:00
parent 8c227029dc
commit 09f05d6758
No known key found for this signature in database
GPG key ID: 9584E0870D990D97

View file

@ -11,6 +11,10 @@ export const EmptyPageFactory: FactoryProvider<Page> = {
const browser = await runnerService.getBrowser() const browser = await runnerService.getBrowser()
const page = await browser.newPage() const page = await browser.newPage()
// Default navigation timeout and loading timeout of 5s
page.setDefaultNavigationTimeout(5_000)
page.setDefaultTimeout(5_000)
return page return page
}, },
inject: [RunnerService], inject: [RunnerService],