This is a cypress web automation project using BDD and POM
Installing Cucumber Step 1: To install Cucumber, run this command.
npm install --save-dev cypress-cucumber-preprocessor Once installed, Cucumber devDependency in package.json can be seen below.
const { defineConfig } = require("cypress"); const cucumber = require("cypress-cucumber-preprocessor").default; module.exports = defineConfig({ e2e: { setupNodeEvents(on, config) { on("file:preprocessor", cucumber()); }, }, });
"cypress-cucumber-preprocessor": { "nonGlobalStepDefinitions": false }
"step_definitions": "cypress/e2e/cucumber/Tests"
specPattern: "**/*.feature",