test: immediately-available visible elem

This commit is contained in:
tbitw2549 2024-08-28 16:26:59 +03:00
parent 5e973777b7
commit 124d1e2b49
2 changed files with 2 additions and 1 deletions

View File

@ -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()
})

View File

@ -5,6 +5,7 @@
<LazyNCompServer message="lazy-named-comp-server" />
<LazyEventDelayedEvent id="lazyevent" />
<LazyEventView />
<LazyVisibleDelayedVisible />
<LazyNeverDelayedNever />
<LazyEventDelayedEvent
id="lazyevent2"