-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcypress.config.js
39 lines (35 loc) · 879 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
/// <reference types="cypress" />
const { defineConfig } = require("cypress");
module.exports = defineConfig({
pageLoadTimeout: 30 * 1000,
defaultCommandTimeout: 30 * 1000,
experimentalMemoryManagement: true,
numTestsKeptInMemory: 0,
chromeWebSecurity: false,
trashAssetsBeforeRuns: true,
reporter: 'cypress-mochawesome-reporter',
video: false,
reporterOptions: {
charts: true,
reportPageTitle: 'Cypress Inline Reporter',
screenshotOnRunFailure: true,
screenshotsFolder: "./cypress/reports/screenshots/",
embeddedScreenshots: true,
inlineAssets: true,
},
e2e: {
setupNodeEvents(on, config) {
require('cypress-mochawesome-reporter/plugin')(on);
},
specPattern: "cypress/e2e/**/*.js"
},
viewportHeight:768,
viewportWidth:1024,
env:{
ENV:"qa"
},
retries: {
runMode: 2,
openMode: 1
}
});