Skip to content

Commit

Permalink
add network idle timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jul 2, 2024
1 parent 6dac51e commit 13de4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 13de4e8

Please sign in to comment.