-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.js
46 lines (45 loc) · 1.25 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
const { defineConfig } = require('cypress')
module.exports = defineConfig({
viewportWidth: 1280,
viewportHeight: 720,
defaultCommandTimeout: 4000,
pageLoadTimeout: 40000,
experimentalMemoryManagement: false,
includeShadowDom: true,
numTestsKeptInMemory: 5,
screenshotsFolder: 'cypress/reports/screenshots',
video: false,
modifyObstructiveCode: false,
experimentalSourceRewriting: false,
reporter: 'cypress-mochawesome-reporter',
reporterOptions: {
overwrite: false,
html: false,
video: false,
json: true,
reporterEnabled: 'cypress-mochawesome-reporter, mocha-junit-reporter',
cypressMochawesomeReporterReporterOptions: {
reporterDir: 'cypress/reports',
charts: true,
reportPageTitle: 'Report Tests ',
embeddedScreenshots: true,
inlineAssets: true,
},
mochaJunitReporterReporterOptions: {
mochaFile: 'cypress/reports/junit/test-results-[hash].xml',
toConsole: true,
},
},
chromeWebSecurity: false,
retries: {
runMode: 1,
openMode: 0,
},
e2e: {
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'cypress/support/e2e.js'
}
})