wip: fix tests

This commit is contained in:
daiwei 2025-03-06 22:42:59 +08:00
parent 0d950d41b5
commit 299624d79e
1 changed files with 5 additions and 3 deletions

View File

@ -205,12 +205,14 @@ describe('vapor transition', () => {
`<div class="fade-leave-active fade-leave-to">vapor compB</div>`, `<div class="fade-leave-active fade-leave-to">vapor compB</div>`,
) )
await transitionFinish() await page().waitForSelector(`${containerSelector} > div.fade-enter-from`)
expect(await html(containerSelector)).toBe(`<div>vapor compA</div>`) expect(await html(containerSelector)).toBe(
`<div class="fade-enter-from fade-enter-active">vapor compA</div>`,
)
await nextFrame() await nextFrame()
expect(await html(containerSelector)).toBe( expect(await html(containerSelector)).toBe(
`<div class="fade-enter-from fade-enter-active">vapor compA</div>`, `<div class="fade-enter-active fade-enter-to">vapor compA</div>`,
) )
await nextFrame() await nextFrame()