-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathcypress.config.js
42 lines (41 loc) · 1.15 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
/* eslint-disable no-undef */
const {defineConfig} = require("cypress");
module.exports = defineConfig({
chromeWebSecurity: false,
viewportWidth: 1600,
viewportHeight: 1200,
video: false,
reporter: "cypress-mochawesome-reporter",
reporterOptions: {
charts: true,
embeddedScreenshots: true,
timestamp: "ddmmyyyyhhmmss",
reportFilename: "[status]_[datetime]-[name]-report",
reportPageTitle: "Jsorolla Report Test",
reportDir: "cypress/reports",
overwrite: false,
html: false,
json: true,
},
e2e: {
baseUrl: "http://localhost:4000/test-app/",
setupNodeEvents: on => {
require("cypress-mochawesome-reporter/plugin")(on);
},
defaultCommandTimeout: 12000
},
env: {
// it has limitation compared to nyc configuration
// codeCoverage: {
// include: "src/**/*.js",
// exclude: "cypress/**/*.*",
// },
// coverage: true,
hideXHR: true,
apiUrl: "",
study: "demo@",
user: "",
pass: ""
},
experimentalWebKitSupport: true,
});