chore: improve transition test stability
This commit is contained in:
parent
2bfb8b574d
commit
fa3f8e44ed
@ -1315,12 +1315,12 @@ describe('e2e: Transition', () => {
|
|||||||
expect(await html('#container')).toBe(
|
expect(await html('#container')).toBe(
|
||||||
'<div class="test v-leave-active v-leave-to">one</div>'
|
'<div class="test v-leave-active v-leave-to">one</div>'
|
||||||
)
|
)
|
||||||
// await transitionFinish()
|
await transitionFinish()
|
||||||
// await nextFrame()
|
await nextFrame()
|
||||||
// expect(await html('#container')).toBe(
|
// expect(await html('#container')).toBe(
|
||||||
// '<div class="test v-enter-active v-enter-to">two</div>'
|
// '<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>')
|
expect(await html('#container')).toBe('<div class="test">two</div>')
|
||||||
},
|
},
|
||||||
E2E_TIMEOUT
|
E2E_TIMEOUT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user