Skip to content

Commit

Permalink
add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelo committed Feb 11, 2024
1 parent 79b9a69 commit eae11cd
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 @@ -328,7 +328,7 @@ export class Browser {
this.log.debug('Waiting for dashboard/panel to load', 'timeout', `${options.timeout}s`);
}

await page.waitForNetworkIdle();
await page.waitForNetworkIdle({ timeout: options.timeout * 1000 });
await new Promise((resolve) => setTimeout(resolve, 100));
}, 'panelsRendered');
} catch (err) {
Expand Down

0 comments on commit eae11cd

Please sign in to comment.