-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcypress.config.js
More file actions
28 lines (22 loc) · 814 Bytes
/
cypress.config.js
File metadata and controls
28 lines (22 loc) · 814 Bytes
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
const { defineConfig } = require("cypress");
const cucumber = require('cypress-cucumber-preprocessor').default
async function setupNodeEvents(on, config) {
require('cypress-mochawesome-reporter/plugin')(on);
on('file:preprocessor', cucumber())
// implement node event listeners here
return config;
}
module.exports = defineConfig({
reporter: 'cypress-mochawesome-reporter',
e2e: {
setupNodeEvents,
//Provided path of your scripts
//use this 'specPattern' for normal file
specPattern:'cypress/Integration/**/*.js',
// use this 'specPattern' when running BDD
// specPattern:'cypress/UAT/features/*.{js,feature}',
// U AND U SE THIS BASE URL AS "/" AS A PATH ANYWHERE IN THIS PACKAGE
baseUrl:"http://the-internet.herokuapp.com/"
},
chromeWebSecurity:false
});