-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.js
40 lines (39 loc) · 1018 Bytes
/
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
const { defineConfig } = require("cypress")
const dotenv = require('dotenv').config();
module.exports = defineConfig({
env: {...process.env},
projectId: "ppvyor",
chromeWebSecurity: false,
defaultCommandTimeout: 30000,
execTimeout: 30000,
pageLoadTimeout: 30000,
requestTimeout: 20000,
responseTimeout: 20000,
video: false,
failOnStatusCode: false,
viewportHeight: 1200,
viewportWidth: 1920,
screenshotOnRunFailure: false,
screenshotsFolder: "cypress/screenshots",
videosFolder: "cypress/videos",
trashAssetsBeforeRuns: true,
reporter: "cypress-mochawesome-reporter",
reporterOptions: {
reportDir: "cypress/reports",
charts: true,
reportPageTitle: "End-To-End Test Suite",
embeddedScreenshots: true,
inlineAssets: true,
quiet: true,
overwrite: false,
html: false,
json: true,
},
e2e: {
experimentalRunAllSpecs: true,
specPattern: "cypress/tests/**/*.cy.{js,jsx,ts,tsx}",
setupNodeEvents(on, config) {
return require("./cypress/plugins/index.js")(on, config)
},
},
})