-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.js
36 lines (32 loc) · 1.11 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
36
// const { defineConfig } = require("cypress");
// module.exports = defineConfig({
// e2e: {
// setupNodeEvents(on, config) {
// // implement node event listeners here
// },
// baseUrl: "https://www.verivox.de/",
// // testFiles: "**/*.{feature,features}",
// specPattern: "cypress/e2e/integration/**/*.js",
// //chromeWebSecurity: false,
// },
// });
const { defineConfig } = require("cypress");
const createBundler = require("@bahmutov/cypress-esbuild-preprocessor");
const addCucumberPreprocessorPlugin =
require("@badeball/cypress-cucumber-preprocessor").addCucumberPreprocessorPlugin;
const createEsbuildPlugin =
require("@badeball/cypress-cucumber-preprocessor/esbuild").createEsbuildPlugin;
module.exports = defineConfig({
e2e: {
async setupNodeEvents(on, config) {
const bundler = createBundler({
plugins: [createEsbuildPlugin(config)],
});
on("file:preprocessor", bundler);
await addCucumberPreprocessorPlugin(on, config);
return config;
},
specPattern: "cypress/e2e/**/*.feature",
baseUrl: "https://www.verivox.de/",
},
});