Adding default timeouts of 5s
This commit is contained in:
parent
8c227029dc
commit
09f05d6758
1 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,10 @@ export const EmptyPageFactory: FactoryProvider<Page> = {
|
|||
const browser = await runnerService.getBrowser()
|
||||
const page = await browser.newPage()
|
||||
|
||||
// Default navigation timeout and loading timeout of 5s
|
||||
page.setDefaultNavigationTimeout(5_000)
|
||||
page.setDefaultTimeout(5_000)
|
||||
|
||||
return page
|
||||
},
|
||||
inject: [RunnerService],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue