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:
commit
056e6393d0
@ -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 });
|
||||
})
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user