Skip to content

Commit fa3f8e4

Browse files
committed
chore: improve transition test stability
1 parent 2bfb8b5 commit fa3f8e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/vue/__tests__/Transition.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,12 +1315,12 @@ describe('e2e: Transition', () => {
13151315
expect(await html('#container')).toBe(
13161316
'<div class="test v-leave-active v-leave-to">one</div>'
13171317
)
1318-
// await transitionFinish()
1319-
// await nextFrame()
1318+
await transitionFinish()
1319+
await nextFrame()
13201320
// expect(await html('#container')).toBe(
13211321
// '<div class="test v-enter-active v-enter-to">two</div>'
13221322
// )
1323-
await transitionFinish(duration * 2)
1323+
await transitionFinish()
13241324
expect(await html('#container')).toBe('<div class="test">two</div>')
13251325
},
13261326
E2E_TIMEOUT

0 commit comments

Comments
 (0)