2022-12-21 08:19:29 +00:00
|
|
|
const { defineConfig } = require('cypress');
|
2022-12-20 13:59:53 +00:00
|
|
|
|
|
|
|
module.exports = defineConfig({
|
2022-12-21 08:19:29 +00:00
|
|
|
e2e: {
|
2023-02-22 13:55:29 +00:00
|
|
|
baseUrl: 'http://localhost:9000/',
|
2024-04-09 05:47:40 +00:00
|
|
|
experimentalStudio: true,
|
2023-01-03 13:17:22 +00:00
|
|
|
fixturesFolder: 'test/cypress/fixtures',
|
|
|
|
screenshotsFolder: 'test/cypress/screenshots',
|
|
|
|
supportFile: 'test/cypress/support/index.js',
|
|
|
|
videosFolder: 'test/cypress/videos',
|
2023-09-25 10:06:49 +00:00
|
|
|
video: false,
|
2023-11-09 09:29:28 +00:00
|
|
|
specPattern: 'test/cypress/integration/**/*.spec.js',
|
2023-01-03 13:17:22 +00:00
|
|
|
experimentalRunAllSpecs: true,
|
2024-10-29 13:25:34 +00:00
|
|
|
watchForFileChanges: true,
|
2024-10-29 13:27:24 +00:00
|
|
|
reporter: 'cypress-mochawesome-reporter',
|
|
|
|
reporterOptions: {
|
|
|
|
charts: true,
|
|
|
|
reportPageTitle: 'Cypress Inline Reporter',
|
|
|
|
embeddedScreenshots: true,
|
|
|
|
reportDir: 'test/cypress/reports',
|
|
|
|
inlineAssets: true,
|
|
|
|
},
|
2022-12-21 08:19:29 +00:00
|
|
|
component: {
|
|
|
|
componentFolder: 'src',
|
|
|
|
testFiles: '**/*.spec.js',
|
2023-01-03 13:17:22 +00:00
|
|
|
supportFile: 'test/cypress/support/unit.js',
|
2022-12-21 08:19:29 +00:00
|
|
|
},
|
|
|
|
setupNodeEvents(on, config) {
|
2024-10-29 13:27:24 +00:00
|
|
|
require('cypress-mochawesome-reporter/plugin')(on);
|
2022-12-21 08:19:29 +00:00
|
|
|
// implement node event listeners here
|
|
|
|
},
|
2022-12-20 13:59:53 +00:00
|
|
|
},
|
|
|
|
});
|