diff --git a/tests/integration/routes/tests/index.test.ts b/tests/integration/routes/tests/index.test.ts index 1b7e55339b44..f2a2a412d92c 100644 --- a/tests/integration/routes/tests/index.test.ts +++ b/tests/integration/routes/tests/index.test.ts @@ -617,9 +617,7 @@ describe('dev', () => { describe('client data', () => { test('support client data', async () => { - const page1 = await browser.newPage(); - await supportClientLoader(page1, errors, appPort); - await page1.close(); + await supportClientLoader(page, errors, appPort); }); }); @@ -844,9 +842,7 @@ describe('dev with rspack', () => { describe('client data', () => { test('support client data', async () => { - const page1 = await browser.newPage(); - await supportClientLoader(page1, errors, appPort); - await page1.close(); + await supportClientLoader(page, errors, appPort); }); });