Skip to content

Commit

Permalink
test: close out some missing browser contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 28, 2023
1 parent e864c01 commit 3bc3aea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/basic.test.ts
Expand Up @@ -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()
})
})

Expand Down Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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()
})
})

Expand Down

0 comments on commit 3bc3aea

Please sign in to comment.