-
Notifications
You must be signed in to change notification settings - Fork 8
/
cypress.config.js
42 lines (36 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
37
38
39
40
41
42
const { defineConfig } = require('cypress')
const createBundler = require("@bahmutov/cypress-esbuild-preprocessor");
const createEsbuildPlugin = require('@badeball/cypress-cucumber-preprocessor/esbuild').createEsbuildPlugin;
const addCucumberPreprocessorPlugin = require('@badeball/cypress-cucumber-preprocessor').addCucumberPreprocessorPlugin;
async function setupNodeEvents(on, config) {
await addCucumberPreprocessorPlugin(on, config);
on(
"file:preprocessor",
createBundler({
plugins: [createEsbuildPlugin(config)],
})
);
// Make sure to return the config object as it might have been modified by the plugin.
return config;
}
module.exports = defineConfig({
e2e: {
baseUrl: "https://robotwebdemo.herokuapp.com/",
specPattern: "**/*.feature",
excludeSpecPattern: [
"*.js",
"*.md"
],
//stepDefinitions: 'support/step_definitions/**.js',
/*
reporter: "junit",
reporterOptions: {
"mochaFile": "test-results/test-output-[hash].xml"
}
*/
chromeWebSecurity: false,
projectId: "bfi83g",
supportFile: false,
setupNodeEvents
}
})