Bläddra i källkod

chore: bump transition test duration on CI

Evan You 5 år sedan
förälder
incheckning
21edc18ac3

+ 1 - 1
packages/vue/__tests__/Transition.spec.ts

@@ -14,7 +14,7 @@ describe('e2e: Transition', () => {
   } = setupPuppeteer()
   const baseUrl = `file://${path.resolve(__dirname, './transition.html')}`
 
-  const duration = 50
+  const duration = process.env.CI ? 100 : 50
   const buffer = 5
 
   const transitionFinish = (time = duration) => timeout(time + buffer)

+ 1 - 1
packages/vue/__tests__/TransitionGroup.spec.ts

@@ -6,7 +6,7 @@ describe('e2e: TransitionGroup', () => {
   const { page, html, nextFrame, timeout } = setupPuppeteer()
   const baseUrl = `file://${path.resolve(__dirname, './transition.html')}`
 
-  const duration = 50
+  const duration = process.env.CI ? 100 : 50
   const buffer = 5
 
   const htmlWhenTransitionStart = () =>