-
Notifications
You must be signed in to change notification settings - Fork 10
/
cypress.config.js
39 lines (38 loc) · 1.11 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
const { defineConfig } = require("cypress");
module.exports = defineConfig({
projectId: "zpa4f8",
defaultCommandTimeout: 10000,
requestTimeout: 30000,
screenshotOnRunFailure: true,
video: true,
videoUploadOnPasses: false,
viewportHeight: 980,
viewportWidth: 1920,
chromeWebSecurity: false,
numTestsKeptInMemory: 0,
e2e: {
experimentalStudio: true,
experimentalRunAllSpecs: true,
setupNodeEvents(on, config) {
return require("./cypress/plugins/index.js")(on, config);
},
baseUrl: "http://localhost:5002/",
},
reporter: "junit",
reporterOptions: {
mochaFile: "cypress/results/test-results-[hash].xml",
testCaseSwitchClassnameAndName: false,
},
compilerOptions: {
types: ["cypress", "@4tw/cypress-drag-drop"],
types: ["cypress", "node", "cypress-real-events"],
},
retries: {
// Configure retry attempts for `cypress run`
// Default is 0
runMode: 2,
// Configure retry attempts for `cypress open`
// Default is 0
openMode: 0,
},
});