-
Notifications
You must be signed in to change notification settings - Fork 9
/
cypress.config.js
35 lines (33 loc) · 1.14 KB
/
cypress.config.js
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
const { defineConfig } = require("cypress");
const createBundler = require("@bahmutov/cypress-esbuild-preprocessor");
const preprocessor = require("@badeball/cypress-cucumber-preprocessor");
const createEsbuildPlugin = require("@badeball/cypress-cucumber-preprocessor/esbuild");
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
on(
"file:preprocessor",
createBundler({
plugins: [createEsbuildPlugin.default(config)],
})
);
preprocessor.addCucumberPreprocessorPlugin(on, config);
require('cypress-mochawesome-reporter/plugin')(on);
// Make sure to return the config object as it might have been modified by the plugin.
return config;
},
specPattern: '**/*.feature',
excludeSpecPattern: '**/pages/*',
videosFolder: "cypress/reports/videos",
screenshotsFolder: "cypress/reports/screenshots",
reporter: 'cypress-mochawesome-reporter',
reporterOptions: {
charts: true,
reportPageTitle: 'custom-title',
embeddedScreenshots: true,
inlineAssets: true,
saveAllAttempts: false,
},
projectId: "qrq1nw"
},
});