diff --git a/test/basic.test.ts b/test/basic.test.ts index 32e66164f..e15b62df4 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -2646,6 +2646,7 @@ describe('lazy import components', () => { await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight)) await page.waitForLoadState('networkidle') expect(await page.locator('body').getByText('This should be visible at first with viewport!').all()).toHaveLength(0) + await page.waitForLoadState('networkidle') expect(await page.locator('body').getByText('This shouldn\'t be visible at first with viewport!').all()).toHaveLength(1) }) })