mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 01:53:55 +00:00
test: refactor custom component test
This commit is contained in:
parent
e7621cb222
commit
b28ee7896d
@ -2715,11 +2715,8 @@ describe('lazy import components', () => {
|
|||||||
await page.close()
|
await page.close()
|
||||||
})
|
})
|
||||||
it('does not delay hydration of components named after modifiers', async () => {
|
it('does not delay hydration of components named after modifiers', async () => {
|
||||||
const { page } = await renderPage('/lazy-import-components')
|
expect(html).toContain('This fake lazy event should be visible!')
|
||||||
await page.waitForLoadState('networkidle')
|
expect(html).not.toContain('This fake lazy event shouldn\'t be visible!')
|
||||||
expect(await page.locator('body').getByText('This fake lazy event should be visible!').all()).toHaveLength(1)
|
|
||||||
expect(await page.locator('body').getByText('This fake lazy event shouldn\'t be visible!').all()).toHaveLength(0)
|
|
||||||
await page.close()
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user