From 84b2333cf567014809edc83390734c7938de9bf7 Mon Sep 17 00:00:00 2001 From: Michael Brevard Date: Mon, 8 Apr 2024 19:09:35 +0300 Subject: [PATCH] fix: await --- test/basic.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }) })