test: fix time-based hydration test

This commit is contained in:
Daniel Roe 2025-03-01 13:23:20 +00:00
parent 66f19ccf41
commit 40ddc30ac8
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -2927,7 +2927,7 @@ describe('lazy import components', () => {
const hydratedText = 'This is mounted.'
await page.locator('[data-testid=hydrate-after]', { hasText: unhydratedText }).waitFor({ state: 'visible' })
await page.locator('[data-testid=hydrate-after]', { hasText: hydratedText }).waitFor({ state: 'hidden' })
await page.locator('[data-testid=hydrate-after]', { hasText: hydratedText }).waitFor({ state: 'visible' })
await page.close()
})