From d04d28a56d1454d2721513b451223c2333ffb8e3 Mon Sep 17 00:00:00 2001 From: Henrik Skupin Date: Fri, 8 Dec 2023 21:59:18 +0100 Subject: [PATCH] Remove unnecessary loop for closing open pages --- test/test.mjs | 3 --- 1 file changed, 3 deletions(-) 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;