mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 00:23:53 +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()
|
||||
})
|
||||
it('does not delay hydration of components named after modifiers', async () => {
|
||||
const { page } = await renderPage('/lazy-import-components')
|
||||
await page.waitForLoadState('networkidle')
|
||||
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()
|
||||
expect(html).toContain('This fake lazy event should be visible!')
|
||||
expect(html).not.toContain('This fake lazy event shouldn\'t be visible!')
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user