diff --git a/test/basic.test.ts b/test/basic.test.ts index 17d32c9be5..960588984f 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -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() }) diff --git a/test/fixtures/basic/pages/lazy-import-components/index.vue b/test/fixtures/basic/pages/lazy-import-components/index.vue index 1dd64147f1..278376c99b 100644 --- a/test/fixtures/basic/pages/lazy-import-components/index.vue +++ b/test/fixtures/basic/pages/lazy-import-components/index.vue @@ -5,6 +5,7 @@ +