From eae11cd4999759705bc9fbf1054873f7b5868479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 11 Feb 2024 16:11:50 +0100 Subject: [PATCH] add timeout --- src/browser/browser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/browser.ts b/src/browser/browser.ts index 15391b95..f2dabc10 100644 --- a/src/browser/browser.ts +++ b/src/browser/browser.ts @@ -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) {