-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathcypress.config.js
More file actions
34 lines (33 loc) · 1.09 KB
/
cypress.config.js
File metadata and controls
34 lines (33 loc) · 1.09 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
const { defineConfig } = require('cypress');
module.exports = defineConfig({
defaultCommandTimeout: 60000,
viewportWidth: 2000,
viewportHeight: 1320,
env: {
opensearch_url: 'localhost:9200',
opensearch_dashboards: 'localhost:5601',
security_enabled: false,
},
fixturesFolder: '.cypress/fixtures',
screenshotsFolder: '.cypress/screenshots',
videosFolder: '.cypress/videos',
e2e: {
setupNodeEvents(on, config) {
on('before:browser:launch', (browser, launchOptions) => {
if (browser.name === 'chrome' || browser.name === 'chromium') {
launchOptions.args.push('--disable-dev-shm-usage');
launchOptions.args.push('--disable-gpu');
launchOptions.args.push('--disable-extensions');
launchOptions.args.push('--no-sandbox');
}
return launchOptions;
});
return require('./.cypress/plugins/index.js')(on, config);
},
specPattern: '.cypress/integration/*.spec.js',
supportFile: '.cypress/support/index.js',
numTestsKeptInMemory: 0,
experimentalMemoryManagement: true,
video: true,
},
});