Skip to content

Commit

Permalink
fix(e2e): use networkIdle2 logic in Puppeteer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin committed Feb 20, 2025
1 parent f7f4059 commit 7a02395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/e2e/puppeteer-store-pagination-jquery/actor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ await Actor.main(async () => {
// enqueue product details from the first three pages of the store
for (let pageNo = 1; pageNo < 3; pageNo++) {
// Wait for network events to finish
await page.waitForNetworkIdle();
await page.waitForNetworkIdle({ concurrency: 2 });
// Enqueue all loaded links
await enqueueLinks({
selector: 'a.product-item__image-wrapper',
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/puppeteer-store-pagination/actor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ crawler.router.addHandler('START', async ({ log, enqueueLinks, page }) => {
// enqueue product details from the first three pages of the store
for (let pageNo = 1; pageNo < 3; pageNo++) {
// Wait for network events to finish
await page.waitForNetworkIdle();
await page.waitForNetworkIdle({ concurrency: 2 });
// Enqueue all loaded links
await enqueueLinks({
selector: 'a.product-item__image-wrapper',
Expand Down

0 comments on commit 7a02395

Please sign in to comment.