-
Notifications
You must be signed in to change notification settings - Fork 9
/
cypress.config.js
35 lines (33 loc) · 918 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
const {
chromeAllowXSiteCookies,
cucumberPreprocessor,
networkShim,
} = require('@dhis2/cypress-plugins')
const { defineConfig } = require('cypress')
async function setupNodeEvents(on, config) {
await cucumberPreprocessor(on, config)
networkShim(on)
chromeAllowXSiteCookies(on)
return config
}
module.exports = defineConfig({
video: false,
projectId: '48zztu',
experimentalInteractiveRunEvents: true,
env: {
dhis2BaseUrl: 'https://localhost:8080',
dhis2Username: 'admin',
dhis2Password: 'district',
dhis2DataTestPrefix: '',
networkMode: 'live',
dhis2ApiVersion: '42',
},
defaultCommandTimeout: 10000,
requestTimeout: 10000,
e2e: {
setupNodeEvents,
baseUrl: 'https://localhost:3000',
specPattern: 'cypress/e2e/**/*.feature',
excludeSpecPattern: ['**/*-wip/*.feature'],
},
})