-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.js
40 lines (34 loc) · 885 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
// import { defineConfig } from "cypress";
// export default defineConfig({
// e2e: {
// setupNodeEvents(on, config) {
// // implement node event listeners here
// },
// },
// });
const { defineConfig } = require('cypress')
module.exports = defineConfig({
viewportWidth: 1920,
viewportHeight: 1080,
video: false,
experimentalWebKitSupport: true,
reporter: 'cypress-multi-reporters',
reporterOptions: {
configFile: 'reporter-config.json',
},
env: {
username: '[email protected]',
password: 'CypressTest1',
apiUrl: 'https://api.realworld.io'
},
// retries: 1,
retries: {
runMode: 2,//such as CICD pipeline
openMode:0
},
e2e: {
baseUrl: 'http://localhost:4200',
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
excludeSpecPattern: ['**/1-getting-started/*', '**/2-advanced-examples/*'],
},
})