diff --git a/test/basic.test.ts b/test/basic.test.ts index c4eed12891..a5a42fca10 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!').all()).toHaveLength(0) + expect(await page.locator('body').getByText('This shouldn\'t be visible at first!').all()).toHaveLength(0) }) })