mirror of https://github.com/vuejs/core.git
wip: fix tests
This commit is contained in:
parent
0d950d41b5
commit
299624d79e
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue