-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcypress.config.ts
44 lines (43 loc) · 1.38 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
import { defineConfig } from 'cypress';
export default defineConfig({
screenshotsFolder: 'tests/integration/screenshots/',
videosFolder: 'tests/integration/videos/',
video: false,
videoCompression: false,
trashAssetsBeforeRuns: true,
fixturesFolder: 'tests/integration/fixtures/',
viewportWidth: 1280,
viewportHeight: 720,
watchForFileChanges: true,
pageLoadTimeout: 15000,
taskTimeout: 3000,
responseTimeout: 10000,
execTimeout: 3000,
defaultCommandTimeout: 3000,
modifyObstructiveCode: false,
numTestsKeptInMemory: 1,
reporter: 'junit',
reporterOptions: {
mochaFile: 'tests/integration/reports/junit.[hash].xml',
includePending: true,
useFullSuiteTitle: true,
testsuitesTitle: 'Chameleon integration tests',
jenkinsMode: false,
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
// eslint-disable-next-line global-require
return require('./tests/integration/plugins')(on, config);
},
baseUrl: 'http://localhost:42475',
specPattern: 'tests/integration/specs/**/*.spec.js',
excludeSpecPattern: [
'tests/integration/snapshots/**/*',
'tests/integration/**/__snapshots__/**/*',
'tests/integration/**/__image_snapshots__/**/*',
],
supportFile: 'tests/integration/support/index.js',
},
});