mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
test: add component name modifier conflict test
This commit is contained in:
parent
51f20645d9
commit
24fdcda7d4
@ -2707,6 +2707,12 @@ describe('lazy import components', () => {
|
||||
expect(await page.locator('body').getByText('This should be visible at first with events!').all()).toHaveLength(1)
|
||||
expect(await page.locator('body').getByText('This shouldn\'t be visible at first with events!').all()).toHaveLength(1)
|
||||
})
|
||||
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)
|
||||
})
|
||||
})
|
||||
|
||||
describe('defineNuxtComponent watch duplicate', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user