0.0.1 • Published 7 months ago

cypress-bdd v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

cypress-bdd

This repo is a combination of the cypress-cucumber-preprocessor plugin for Cypress and some pre defined When, Then and Given commands.

Installation

Your existing project will still need to have the latest version of Cypress installed. Then you can install this package as a dev dependency.

npm install @tixel/cypress-bdd --save-dev

Then your Cypress config should look something like this:

const { defineConfig } = require('cypress');

module.exports = defineConfig({
  e2e: {
    setupNodeEvents(on, config) {
      return require('cypress-bdd')(on, config);
    },
    specPattern: 'cypress/e2e/**/*.feature',
  },
});
0.0.1

7 months ago