-
Notifications
You must be signed in to change notification settings - Fork 3
/
cypress.config.js
42 lines (37 loc) · 967 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
41
42
const {
networkShim,
chromeAllowXSiteCookies,
cucumberPreprocessor,
} = require('@dhis2/cypress-plugins')
const { defineConfig } = require('cypress')
async function setupNodeEvents(on, config) {
await cucumberPreprocessor(on, config)
networkShim(on, config)
chromeAllowXSiteCookies(on, config)
return config
}
module.exports = defineConfig({
video: false,
projectId: 'efhyah',
env: {
dhis2DataTestPrefix: 'dhis2-dataexchange',
networkMode: 'live',
dhis2ApiVersion: '42',
},
experimentalSessionAndOrigin: true,
experimentalInteractiveRunEvents: true,
e2e: {
setupNodeEvents,
baseUrl: 'http://localhost:3000',
specPattern: [
'cypress/e2e/**/*.feature.js',
'cypress/e2e/**/*.feature',
],
},
component: {
devServer: {
framework: 'create-react-app',
bundler: 'webpack',
},
},
})