]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: bump more
authorEvan You <yyx990803@gmail.com>
Fri, 7 May 2021 13:19:14 +0000 (09:19 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 7 May 2021 13:28:14 +0000 (09:28 -0400)
packages/vue/__tests__/Transition.spec.ts
packages/vue/__tests__/TransitionGroup.spec.ts

index 5ef7cac89c24634e25717626d8f3af1854477c9e..ecde3e3694f61d7be2bd1d50a6734e023c42c391 100644 (file)
@@ -14,8 +14,8 @@ describe('e2e: Transition', () => {
   } = setupPuppeteer()
   const baseUrl = `file://${path.resolve(__dirname, './transition.html')}`
 
-  const duration = process.env.CI ? 100 : 50
-  const buffer = 5
+  const duration = process.env.CI ? 200 : 50
+  const buffer = process.env.CI ? 20 : 5
 
   const transitionFinish = (time = duration) => timeout(time + buffer)
 
@@ -861,7 +861,7 @@ describe('e2e: Transition', () => {
           'test-anim-long-leave-to'
         ])
         await new Promise(r => {
-          setTimeout(r, duration + 5)
+          setTimeout(r, duration - buffer)
         })
         expect(await classList('#container div')).toStrictEqual([
           'test-anim-long-leave-active',
@@ -881,7 +881,7 @@ describe('e2e: Transition', () => {
           'test-anim-long-enter-to'
         ])
         await new Promise(r => {
-          setTimeout(r, duration + 5)
+          setTimeout(r, duration - buffer)
         })
         expect(await classList('#container div')).toStrictEqual([
           'test-anim-long-enter-active',
index 277955f8e60d16f648984e3e3c074b081d5bdd18..f19a04a0d37852db0239a760ed71a0596f8ac7f5 100644 (file)
@@ -6,8 +6,8 @@ describe('e2e: TransitionGroup', () => {
   const { page, html, nextFrame, timeout } = setupPuppeteer()
   const baseUrl = `file://${path.resolve(__dirname, './transition.html')}`
 
-  const duration = process.env.CI ? 100 : 50
-  const buffer = 5
+  const duration = process.env.CI ? 200 : 50
+  const buffer = process.env.CI ? 20 : 5
 
   const htmlWhenTransitionStart = () =>
     page().evaluate(() => {