Merge pull request #17398 from calixteman/test_dont_run_beforeunload

Don't run beforeunload callback when closing page in integration tests
This commit is contained in:
Tim van der Meij 2023-12-09 15:04:00 +01:00 committed by GitHub
commit 056e6393d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 });
})
);
}