diff --git a/test/basic.test.ts b/test/basic.test.ts index d7ea4053e1..c4eed12891 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -2566,6 +2566,6 @@ describe('lazy import components', () => { it('lazy load delayed hydration comps at the right time', async () => { expect(html).not.toContain('This shouldn\'t be visible at first!') const { page } = await renderPage('/lazy-import-components') - expect(page.locator('body').getByText('This shouldn\'t be visible at first!')).not.toBeDefined() + expect(page.locator('body').getByText('This shouldn\'t be visible at first!').all()).toHaveLength(0) }) })