diff --git a/cypress.config.js b/cypress.config.js index ca0b896e..03b99e42 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -1,41 +1,42 @@ const {defineConfig} = require('cypress'); module.exports = defineConfig({ projectId: 'swh-web', video: false, viewportWidth: 1920, viewportHeight: 1080, defaultCommandTimeout: 20000, requestTimeout: 20000, numTestsKeptInMemory: 500, reporter: 'cypress-multi-reporters', reporterOptions: { reporterEnabled: 'mochawesome, mocha-junit-reporter', mochawesomeReporterOptions: { reportDir: 'cypress/mochawesome/results', quiet: true, overwrite: false, html: false, json: true }, mochaJunitReporterReporterOptions: { mochaFile: 'cypress/junit/results/results-[hash].xml' } }, env: { SKIP_SLOW_TESTS: 1 }, retries: { runMode: 4 }, hmrUrl: 'ws://localhost:3000/ws', hmrRestartDelay: 5000, e2e: { // We've imported your old cypress plugins here. // You may want to clean this up later by importing these. setupNodeEvents(on, config) { return require('./cypress/plugins/index.js')(on, config); }, - baseUrl: 'http://localhost:5004' + baseUrl: 'http://localhost:5004', + supportFile: 'cypress/support/e2e.js' } });