Skip to content

Commit

Permalink
Use timeout opt value for browser page.goto (#171)
Browse files Browse the repository at this point in the history
Co-authored-by: hhars <[email protected]>
  • Loading branch information
w4rgrum and hhars authored Jan 26, 2021
1 parent d2ca539 commit 311abc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class Browser {
this.log.debug('Navigating and waiting for all network requests to finish', 'url', options.url);
}

await page.goto(options.url, { waitUntil: 'networkidle0' });
await page.goto(options.url, { waitUntil: 'networkidle0', timeout: options.timeout * 1000 });

if (this.config.verboseLogging) {
this.log.debug('Waiting for dashboard/panel to load', 'timeout', `${options.timeout}s`);
Expand Down

0 comments on commit 311abc0

Please sign in to comment.