From 1039735d458e73cb79e8a8d6e516b473c8746dbb Mon Sep 17 00:00:00 2001 From: Michael Brevard Date: Mon, 10 Jun 2024 00:41:55 +0300 Subject: [PATCH] chore: await another networkidle --- test/basic.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/basic.test.ts b/test/basic.test.ts index 32e66164f..e15b62df4 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -2646,6 +2646,7 @@ describe('lazy import components', () => { await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight)) await page.waitForLoadState('networkidle') expect(await page.locator('body').getByText('This should be visible at first with viewport!').all()).toHaveLength(0) + await page.waitForLoadState('networkidle') expect(await page.locator('body').getByText('This shouldn\'t be visible at first with viewport!').all()).toHaveLength(1) }) })