]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: improve transition test stability
authorEvan You <yyx990803@gmail.com>
Wed, 12 May 2021 21:28:18 +0000 (17:28 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 12 May 2021 21:28:18 +0000 (17:28 -0400)
packages/vue/__tests__/Transition.spec.ts

index 78b7acb83e6edd1b33f7d5ce06eec53a7054ad85..5f9a30fda5221e9f00ce85889c0aa0127cbb38dd 100644 (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