chore: improve transition test stability

This commit is contained in:
Evan You 2021-05-12 17:28:18 -04:00
parent 2bfb8b574d
commit fa3f8e44ed

View File

@ -1315,12 +1315,12 @@ describe('e2e: Transition', () => {
expect(await html('#container')).toBe(
'<div class="test v-leave-active v-leave-to">one</div>'
)
// await transitionFinish()
// await nextFrame()
await transitionFinish()
await nextFrame()
// expect(await html('#container')).toBe(
// '<div class="test v-enter-active v-enter-to">two</div>'
// )
await transitionFinish(duration * 2)
await transitionFinish()
expect(await html('#container')).toBe('<div class="test">two</div>')
},
E2E_TIMEOUT