|
| 1 | +const { defineConfig } = require('cypress'); |
| 2 | + |
| 3 | +module.exports = defineConfig({ |
| 4 | + video: true, |
| 5 | + chromeWebSecurity: true, |
| 6 | + fixturesFolder: '.cypress/fixtures', |
| 7 | + screenshotsFolder: '.cypress/screenshots', |
| 8 | + videosFolder: '.cypress/videos', |
| 9 | + downloadsFolder: '.cypress/downloads', |
| 10 | + viewportWidth: 2000, |
| 11 | + viewportHeight: 1320, |
| 12 | + requestTimeout: 60000, |
| 13 | + responseTimeout: 60000, |
| 14 | + defaultCommandTimeout: 60000, |
| 15 | + //experimentalNetworkStubbing: true, |
| 16 | + //experimentalMemoryManagement: true, |
| 17 | + numTestsKeptInMemory: 10, //Default value 50, chrome crashes without lowering |
| 18 | + env: { |
| 19 | + opensearch: 'localhost:9200', |
| 20 | + opensearchDashboards: 'localhost:5601', |
| 21 | + security_enabled: true, |
| 22 | + }, |
| 23 | + 'cypress-watch-and-reload': { |
| 24 | + watch: ['common/**', 'public/**', 'server/**'], |
| 25 | + }, |
| 26 | + e2e: { |
| 27 | + // We've imported your old cypress plugins here. |
| 28 | + // You may want to clean this up later by importing these. |
| 29 | + setupNodeEvents(on, config) { |
| 30 | + return require('./.cypress/plugins/index.js')(on, config); |
| 31 | + }, |
| 32 | + baseUrl: 'http://localhost:5601', |
| 33 | + specPattern: '.cypress/integration/**/*.spec.{js,jsx,ts,tsx}', |
| 34 | + supportFile: '.cypress/support/index.js', |
| 35 | + }, |
| 36 | +}); |
0 commit comments