forked from bencodezen/vue-enterprise-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
cypress.config.ts
57 lines (56 loc) · 1.57 KB
/
cypress.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { defineConfig } from 'cypress';
export default defineConfig({
e2e: {
specPattern: 'tests/e2e/**/*.{cy,spec,e2e}.{js,jsx,ts,tsx}',
baseUrl: 'http://localhost:4173',
supportFile: 'tests/e2e/support/setup.ts',
},
// ===
// General
// https://docs.cypress.io/guides/references/configuration.html#Global
// ===
watchForFileChanges: true,
// ===
// Environment variables
// https://docs.cypress.io/guides/guides/environment-variables.html#Option-1-cypress-json
// ===
env: {
CI: process.env.CI,
},
// ===
// Viewport
// https://docs.cypress.io/guides/references/configuration.html#Viewport
// ===
viewportWidth: 1280,
viewportHeight: 720,
// ===
// Animations
// https://docs.cypress.io/guides/references/configuration.html#Animations
// ===
waitForAnimations: true,
animationDistanceThreshold: 4,
// ===
// Timeouts
// https://docs.cypress.io/guides/references/configuration.html#Timeouts
// ===
defaultCommandTimeout: 4000,
execTimeout: 60000,
pageLoadTimeout: 60000,
requestTimeout: 5000,
responseTimeout: 30000,
// ===
// Main Directories
// https://docs.cypress.io/guides/references/configuration.html#Folders-Files
// ===
downloadsFolder: 'test/e2e/downloads',
fileServerFolder: 'tests/e2e/specs',
fixturesFolder: 'tests/e2e/fixtures',
// ===
// Videos & Screenshots
// https://docs.cypress.io/guides/core-concepts/screenshots-and-videos.html
// ===
videoUploadOnPasses: true,
videoCompression: 32,
videosFolder: 'tests/e2e/videos',
screenshotsFolder: 'tests/e2e/screenshots',
});