mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-25 10:08:29 +00:00
test: immediately-available visible elem
This commit is contained in:
parent
5e973777b7
commit
124d1e2b49
test
@ -2709,7 +2709,7 @@ describe('lazy import components', () => {
|
||||
expect(await page.locator('body').getByText('This shouldn\'t be visible at first with conditions!').all()).toHaveLength(2)
|
||||
await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight))
|
||||
await page.waitForLoadState('networkidle')
|
||||
expect(await page.locator('body').getByText('This shouldn\'t be visible at first with viewport!').all()).toHaveLength(1)
|
||||
expect(await page.locator('body').getByText('This shouldn\'t be visible at first with viewport!').all()).toHaveLength(2)
|
||||
expect(await page.locator('body').getByText('This should always be visible!').all()).toHaveLength(1)
|
||||
await page.close()
|
||||
})
|
||||
|
@ -5,6 +5,7 @@
|
||||
<LazyNCompServer message="lazy-named-comp-server" />
|
||||
<LazyEventDelayedEvent id="lazyevent" />
|
||||
<LazyEventView />
|
||||
<LazyVisibleDelayedVisible />
|
||||
<LazyNeverDelayedNever />
|
||||
<LazyEventDelayedEvent
|
||||
id="lazyevent2"
|
||||
|
Loading…
Reference in New Issue
Block a user