소스 검색

chore: bump transition test duration on CI

Evan You 5 년 전
부모
커밋
21edc18ac3
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      packages/vue/__tests__/Transition.spec.ts
  2. 1 1
      packages/vue/__tests__/TransitionGroup.spec.ts

+ 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 = () =>