cypress-cucumber-lang
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Cypress Cucumber Lang Logo

Documentation | Changelog

A human readable testing language for web interfaces

What is Cypress Cucumber Lang?

A set of pre-defined cucumber steps and network interaction utilities to allow you to quickly write human readable tests for your app.

Feature: Some Feature

    Background:
        Given the 'https://my-app.com' url is loaded

    Scenario: Search for Chuck Norris
        When the user clicks the textbox element with text 'Name'
        And the user types 'Chuck Norris'
        And the user clicks the button element with text 'Search'
        Then a '@search' request has been sent with input:
            """
              {
                "query": "Chuck Norris"
              }
            """"

Installing

npm version

Install Cypress for Mac, Linux, or Windows, then get started.

npm install cypress-cucumber-lang --save-dev

or

yarn add cypress-cucumber-lang --dev

Setup

Call the init() function inside to e2e.ts

import { init } from "cypress-cucumber-lang";

init();

Modify your existing .cypress-cucumber-preprocessorrc file in the root folder of your project to include the following:

{
  "stepDefinitions": [
    ...
    "node_modules/cypress-cucumber-lang/dist/steps/**/*.{js,ts}"
  ]
}

License

license

This project is licensed under the terms of the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i cypress-cucumber-lang

Weekly Downloads

133

Version

1.0.4

License

ISC

Unpacked Size

14.9 kB

Total Files

10

Last publish

Collaborators

  • micah92c