mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-21 08:45:53 +00:00
test: fix time-based hydration test
This commit is contained in:
parent
031686206b
commit
da3b39d677
@ -2930,7 +2930,7 @@ describe('lazy import components', () => {
|
|||||||
const hydratedText = 'This is mounted.'
|
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: 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()
|
await page.close()
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user