test: fix time-based hydration test

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

View File

@ -2930,7 +2930,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()
})