forked from OFlavioBliss/GrafanaFE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.js
52 lines (46 loc) · 1.33 KB
/
cypress.config.js
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
const { defineConfig } = require('cypress')
module.exports = defineConfig({
projectId: '6d27ms',
chromeWebSecurity: false,
trashAssetsBeforeRuns: true,
numTestsKeptInMemory: 1,
video: true,
videoCompression: false,
videoUploadOnPasses: true,
defaultCommandTimeout: 15000,
redirectionLimit: 50,
viewportWidth: 1920,
viewportHeight: 1080,
screenshotOnRunFailure: true,
screenshotConfig: {
scale: false
},
retries: {
runMode: 2,
openMode: 0
},
reporter: 'cypress-multi-reporters',
reporterOptions: {
reporterEnabled: 'cypress-mochawesome-reporter, mocha-junit-reporter',
cypressMochawesomeReporterReporterOptions: {
reportDir: 'cypress/test-results',
charts: true,
video: false,
reportPageTitle: 'Test results',
embeddedScreenshots: true,
inlineAssets: true
},
mochaJunitReporterReporterOptions: {
mochaFile: 'cypress/test-results/junit/results-[hash].xml'
}
},
e2e: {
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'https://www.blissapplications.com/',
specPattern: ['cypress/integration/**/*.spec.js'],
excludeSpecPattern: ['**/__snapshots__/*', '**/__image_snapshots__/*'],
slowTestThreshold: 30000
}
})