From 88bae15ad7ed1e5c1e0c3ec6607931baea9160d9 Mon Sep 17 00:00:00 2001 From: Michael Brevard Date: Mon, 8 Apr 2024 18:52:27 +0300 Subject: [PATCH] wip: testing page text getting --- test/basic.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/basic.test.ts b/test/basic.test.ts index b0c7787d6d..170e7dd73a 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -2565,5 +2565,7 @@ describe('lazy import components', () => { it('lazy load delayed hydration comps at the right time', () => { 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() }) })