]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test: increase e2e tests timeout
authorEvan You <yyx990803@gmail.com>
Thu, 6 Feb 2020 02:10:43 +0000 (21:10 -0500)
committerEvan You <yyx990803@gmail.com>
Thu, 6 Feb 2020 02:10:43 +0000 (21:10 -0500)
packages/vue/examples/__tests__/commits.spec.ts
packages/vue/examples/__tests__/e2eUtils.ts
packages/vue/examples/__tests__/grid.spec.ts
packages/vue/examples/__tests__/markdown.spec.ts
packages/vue/examples/__tests__/svg.spec.ts
packages/vue/examples/__tests__/todomvc.spec.ts
packages/vue/examples/__tests__/tree.spec.ts

index 96a315056abb9af117a36fe5cdef5c2b8a703770..d48a1957487dcafbef9b87cdcd1f7aa922fe26f7 100644 (file)
@@ -1,5 +1,5 @@
 import path from 'path'
-import { setupPuppeteer } from './e2eUtils'
+import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
 import mocks from './commits.mock'
 
 describe('e2e: commits', () => {
@@ -46,11 +46,19 @@ describe('e2e: commits', () => {
     expect(await count('li .message')).toBe(3)
   }
 
-  test('classic', async () => {
-    await testCommits('classic')
-  })
+  test(
+    'classic',
+    async () => {
+      await testCommits('classic')
+    },
+    E2E_TIMEOUT
+  )
 
-  test('composition', async () => {
-    await testCommits('composition')
-  })
+  test(
+    'composition',
+    async () => {
+      await testCommits('composition')
+    },
+    E2E_TIMEOUT
+  )
 })
index 153b56602e69f6cd73d2a65c98a66ba6e8ff177f..db79a9c59f3e268eb5bbc8a4a05d28d1c2f8db16 100644 (file)
@@ -1,5 +1,7 @@
 import puppeteer from 'puppeteer'
 
+export const E2E_TIMEOUT = 30 * 1000
+
 const puppeteerOptions = process.env.CI
   ? { args: ['--no-sandbox', '--disable-setuid-sandbox'] }
   : {}
index abb7c00d2bf9c494940f51dbe834eda53843c7e9..fe57806b6f10c4f845deaeec3fed609573e8289b 100644 (file)
@@ -1,5 +1,5 @@
 import path from 'path'
-import { setupPuppeteer } from './e2eUtils'
+import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
 
 interface TableData {
   name: string
@@ -103,11 +103,19 @@ describe('e2e: grid', () => {
     expect(await count('p')).toBe(1)
   }
 
-  test('classic', async () => {
-    await testGrid('classic')
-  })
+  test(
+    'classic',
+    async () => {
+      await testGrid('classic')
+    },
+    E2E_TIMEOUT
+  )
 
-  test('composition', async () => {
-    await testGrid('composition')
-  })
+  test(
+    'composition',
+    async () => {
+      await testGrid('composition')
+    },
+    E2E_TIMEOUT
+  )
 })
index 6b248cb5486eb0622578d6dc24b588f76a31af22..3f2570155e6c6743b85ba121df4b565c1f55e924 100644 (file)
@@ -1,5 +1,5 @@
 import path from 'path'
-import { setupPuppeteer } from './e2eUtils'
+import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
 
 describe('e2e: markdown', () => {
   const { page, isVisible, value, html } = setupPuppeteer()
@@ -26,11 +26,19 @@ describe('e2e: markdown', () => {
     )
   }
 
-  test('classic', async () => {
-    await testMarkdown('classic')
-  })
+  test(
+    'classic',
+    async () => {
+      await testMarkdown('classic')
+    },
+    E2E_TIMEOUT
+  )
 
-  test('composition', async () => {
-    await testMarkdown('composition')
-  })
+  test(
+    'composition',
+    async () => {
+      await testMarkdown('composition')
+    },
+    E2E_TIMEOUT
+  )
 })
index b340601b60a01a4befa031f0b786191b296816c7..5ba9202c51971bf04c62ba9e2eb8cef303d53e36 100644 (file)
@@ -1,5 +1,5 @@
 import path from 'path'
-import { setupPuppeteer } from './e2eUtils'
+import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
 
 declare const globalStats: {
   label: string
@@ -66,11 +66,19 @@ describe('e2e: svg', () => {
     await assertStats(6)
   }
 
-  test('classic', async () => {
-    await testSvg('classic')
-  })
+  test(
+    'classic',
+    async () => {
+      await testSvg('classic')
+    },
+    E2E_TIMEOUT
+  )
 
-  test('composition', async () => {
-    await testSvg('composition')
-  })
+  test(
+    'composition',
+    async () => {
+      await testSvg('composition')
+    },
+    E2E_TIMEOUT
+  )
 })
index a9df1dd5bc2b91c5fbbef2a739528dc0abb89d21..de55102362e59242a8dac00f884169d75990b22d 100644 (file)
@@ -1,5 +1,5 @@
 import path from 'path'
-import { setupPuppeteer } from './e2eUtils'
+import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
 
 describe('e2e: todomvc', () => {
   const {
@@ -169,11 +169,19 @@ describe('e2e: todomvc', () => {
     expect(await count('.todo:not(.completed)')).toBe(3)
   }
 
-  test('classic', async () => {
-    await testTodomvc('classic')
-  })
-
-  test('composition', async () => {
-    await testTodomvc('composition')
-  })
+  test(
+    'classic',
+    async () => {
+      await testTodomvc('classic')
+    },
+    E2E_TIMEOUT
+  )
+
+  test(
+    'composition',
+    async () => {
+      await testTodomvc('composition')
+    },
+    E2E_TIMEOUT
+  )
 })
index e8c6eb5b79ed06b7484e790034d3fb95e975f6ef..c8095b0aa29dbb6bb2bbce929342bf7400bc475e 100644 (file)
@@ -1,5 +1,5 @@
 import path from 'path'
-import { setupPuppeteer } from './e2eUtils'
+import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
 
 describe('e2e: tree', () => {
   const { page, click, count, text, children, isVisible } = setupPuppeteer()
@@ -97,11 +97,19 @@ describe('e2e: tree', () => {
     )
   }
 
-  test('classic', async () => {
-    await testTree('classic')
-  })
+  test(
+    'classic',
+    async () => {
+      await testTree('classic')
+    },
+    E2E_TIMEOUT
+  )
 
-  test('composition', async () => {
-    await testTree('composition')
-  })
+  test(
+    'composition',
+    async () => {
+      await testTree('composition')
+    },
+    E2E_TIMEOUT
+  )
 })