mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-22 09:15:54 +00:00
test: fix time-based hydration test
This commit is contained in:
parent
66f19ccf41
commit
40ddc30ac8
@ -2927,7 +2927,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