Skip to content

Commit

Permalink
Merge pull request #17398 from calixteman/test_dont_run_beforeunload
Browse files Browse the repository at this point in the history
Don't run beforeunload callback when closing page in integration tests
  • Loading branch information
timvandermeij authored Dec 9, 2023
2 parents 5537298 + e25cf1b commit 056e639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/test_utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function closePages(pages) {
pages.map(async ([_, page]) => {
// Avoid to keep something from a previous test.
await page.evaluate(() => window.localStorage.clear());
await page.close();
await page.close({ runBeforeUnload: false });
})
);
}
Expand Down

0 comments on commit 056e639

Please sign in to comment.