Skip to content

Commit

Permalink
[fix] clicknav wait until network idle (#2902)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Nov 24, 2021
1 parent 87ac0e1 commit 21733fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/kit/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ function duplicate(test_fn, config, is_build) {
});

await Promise.all([
context.pages.js.waitForNavigation({ waitUntil: 'networkidle' }),
context.pages.js.click(selector),
context.pages.js.evaluate(() => window.navigated)
]);
Expand Down

0 comments on commit 21733fd

Please sign in to comment.