mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +00:00
test: close out some missing browser contexts
This commit is contained in:
parent
e864c018a9
commit
3bc3aeaf62
@ -54,6 +54,7 @@ describe('route rules', () => {
|
|||||||
it('test noScript routeRules', async () => {
|
it('test noScript routeRules', async () => {
|
||||||
const page = await createPage('/no-scripts')
|
const page = await createPage('/no-scripts')
|
||||||
expect(await page.locator('script').all()).toHaveLength(0)
|
expect(await page.locator('script').all()).toHaveLength(0)
|
||||||
|
await page.close()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -731,6 +732,7 @@ describe('middlewares', () => {
|
|||||||
const page = await createPage('/middleware-abort')
|
const page = await createPage('/middleware-abort')
|
||||||
await page.waitForLoadState('networkidle')
|
await page.waitForLoadState('networkidle')
|
||||||
expect(await page.innerHTML('body')).toContain('This is the error page')
|
expect(await page.innerHTML('body')).toContain('This is the error page')
|
||||||
|
await page.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should inject auth', async () => {
|
it('should inject auth', async () => {
|
||||||
@ -1421,6 +1423,8 @@ describe('component islands', () => {
|
|||||||
// test islands slots interactivity
|
// test islands slots interactivity
|
||||||
await page.locator('#first-sugar-counter button').click()
|
await page.locator('#first-sugar-counter button').click()
|
||||||
expect(await page.locator('#first-sugar-counter').innerHTML()).toContain('Sugar Counter 13')
|
expect(await page.locator('#first-sugar-counter').innerHTML()).toContain('Sugar Counter 13')
|
||||||
|
|
||||||
|
await page.close()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user