diff --git a/test/test.mjs b/test/test.mjs index d144432cc540f..711adfa01e99e 100644 --- a/test/test.mjs +++ b/test/test.mjs @@ -1056,9 +1056,6 @@ async function closeSession(browser) { continue; } if (session.browser !== undefined) { - for (const page of await session.browser.pages()) { - await page.close(); - } await session.browser.close(); } session.closed = true;