diff --git a/test/basic.test.ts b/test/basic.test.ts index 656d3ab5cc..8bd0f411bd 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -54,6 +54,7 @@ describe('route rules', () => { it('test noScript routeRules', async () => { const page = await createPage('/no-scripts') expect(await page.locator('script').all()).toHaveLength(0) + await page.close() }) }) @@ -731,6 +732,7 @@ describe('middlewares', () => { const page = await createPage('/middleware-abort') await page.waitForLoadState('networkidle') expect(await page.innerHTML('body')).toContain('This is the error page') + await page.close() }) it('should inject auth', async () => { @@ -1421,6 +1423,8 @@ describe('component islands', () => { // test islands slots interactivity await page.locator('#first-sugar-counter button').click() expect(await page.locator('#first-sugar-counter').innerHTML()).toContain('Sugar Counter 13') + + await page.close() }) })