From 13de4e84a6d07175a1fe6b257d684351f36f5df8 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Tue, 2 Jul 2024 15:46:30 -0700 Subject: [PATCH] add network idle timeout --- test/puppeteer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/puppeteer.js b/test/puppeteer.js index 3ec417cc..d553f5c8 100755 --- a/test/puppeteer.js +++ b/test/puppeteer.js @@ -77,7 +77,7 @@ async function test(port) { ? await page.evaluateOnNewDocument(js) : undefined; await page.goto(url); - await page.waitForNetworkIdle(); + await page.waitForNetworkIdle({timeout: 5000}); if (js) { await page.evaluate(() => { setTimeout(() => {