From 4e469b7de50cbfd4c474c78b434c5ebe7ed61092 Mon Sep 17 00:00:00 2001 From: Michael Brevard Date: Fri, 13 Sep 2024 12:36:52 +0300 Subject: [PATCH] test: adjust test --- 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 0ed42e9c33..31cbc06a3c 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -2776,7 +2776,7 @@ describe('lazy import components', () => { expect(await page.locator('body').getByText('This should be visible at first with viewport!').all()).toHaveLength(1) expect(await page.locator('body').getByText('This should be visible at first with events!').all()).toHaveLength(2) // The default value is immediately truthy, however, there is a hydration mismatch without the hack - expect(await page.locator('body').getByText('This should be visible at first with conditions!').all()).toHaveLength(2) + expect(await page.locator('body').getByText('This should be visible at first with conditions!').all()).toHaveLength(1) const component = page.locator('#lazyevent') const rect = (await component.boundingBox())! await page.mouse.move(rect.x + rect.width / 2, rect.y + rect.height / 2)