-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcypress.config.js
More file actions
47 lines (46 loc) · 1.37 KB
/
cypress.config.js
File metadata and controls
47 lines (46 loc) · 1.37 KB
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
43
44
45
46
47
const { defineConfig } = require('cypress')
module.exports = defineConfig({
chromeWebSecurity: false,
defaultCommandTimeout: 20000,
fixturesFolder: 'tests/cypress/fixtures',
pageLoadTimeout: 60000,
numTestsKeptInMemory: 10,
screenshotsFolder: 'results/screenshots',
videosFolder: 'results/videos',
watchForFileChanges: true,
env: {
ACM_NAMESPACE: 'ocm',
OPTIONS_HUB_OC_IDP: 'kube:admin',
OPTIONS_HUB_USER: 'kubeadmin',
OPTIONS_MANAGED_USER: 'kubeadmin',
},
reporter: 'cypress-multi-reporters',
reporterOptions: {
reporterEnabled: 'mochawesome, mocha-junit-reporter',
mochawesomeReporterOptions: {
reportDir: 'results/json',
reportFilename: 'mochawesome-report.json',
overwrite: false,
html: false,
json: true,
},
mochaJunitReporterReporterOptions: {
mochaFile: 'results/cypress-[hash].xml',
},
},
retries: 2,
viewportHeight: 1050,
viewportWidth: 1680,
projectId: '',
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
require('@cypress/grep/src/plugin')(config)
return require('./tests/cypress/plugins/index.js')(on, config)
},
specPattern: 'tests/cypress/tests/**/*.spec.js',
excludeSpecPattern: [],
supportFile: 'tests/cypress/support/index.js',
},
})