From 10f7f22c828f4189d9c2c403fac8836df06d1dfd Mon Sep 17 00:00:00 2001 From: Michael Brevard Date: Mon, 8 Apr 2024 19:03:15 +0300 Subject: [PATCH] fix: check for count --- 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 d7ea4053e..c4eed1289 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) }) })