mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 17:32:31 +00:00
fix: check for count
This commit is contained in:
parent
00a68bd7ff
commit
10f7f22c82
@ -2566,6 +2566,6 @@ describe('lazy import components', () => {
|
|||||||
it('lazy load delayed hydration comps at the right time', async () => {
|
it('lazy load delayed hydration comps at the right time', async () => {
|
||||||
expect(html).not.toContain('This shouldn\'t be visible at first!')
|
expect(html).not.toContain('This shouldn\'t be visible at first!')
|
||||||
const { page } = await renderPage('/lazy-import-components')
|
const { page } = await renderPage('/lazy-import-components')
|
||||||
expect(page.locator('body').getByText('This shouldn\'t be visible at first!')).not.toBeDefined()
|
expect(page.locator('body').getByText('This shouldn\'t be visible at first!').all()).toHaveLength(0)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user