Skip to content
A collection of Cypress commands to extend and compliment the defaults
Branch: develop
Clone or download
Latest commit 633a895 Apr 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Finalized pull request template Apr 5, 2019
app Added tests for form elements Apr 11, 2019
cypress Added tests for the overwitten behaviour Apr 28, 2019
docs Merge branch 'develop' into separate-base-url-for-request Apr 28, 2019
lib Updated valid HTTP methods Apr 28, 2019
types Added type definitions Apr 10, 2019
.eslintignore Initial commit Mar 28, 2019
.eslintrc.js Initial commit Mar 28, 2019
.gitignore Added support for running in CLI Mar 28, 2019
.jsbeautifyrc
.travis.yml Added travis.yml Apr 1, 2019
LICENSE Initial commit Mar 28, 2019
README.md Added documentation Apr 28, 2019
cypress.json
index.d.ts Added type definitions for then, changed some documentation Apr 10, 2019
index.js Fixed importing Mar 28, 2019
package-lock.json Package lock Apr 28, 2019
package.json Version bump Apr 11, 2019
tsconfig.json Flipped type definitions to prefer our types over Cypresses Apr 10, 2019

README.md

Cypress commands

npm version

A collection of high-quality Cypress commands to compliment and extend the defaults.

This repository is not maintained by the Cypress developers. This means we can choose to ignore parts of their vision.

Documentation is a cornerstone of Cypress, the commands in this repository will try to keep these documentation standards.

Installation

Install the module.

npm install cypress-commands

Add the following line to cypress/support/index.js.

require('cypress-commands');

Type definitions

Import typescript definitions by adding them to your tsconfig.json. Add the cypress-commands types before the Cypress types so intellisense will prefer the cypress-commands versions.

"types": [
    "cypress-commands",
    "cypress"
]

Extended commands

These commands have been extended to be able to do more than originally intended. For these commands, all tests that exist in the Cypress repository are copied to make sure the default behaviour stays identical unless we want it changed.

Added commands

These commands do not exist in Cypress by default.

Contributing

Contributors are always welcome! I really don't care if you are a beginner or an expert, all help is welcome.

Running tests

First clone the repository and install the dependencies.

GUI mode

npm start

CLI mode

npm test
You can’t perform that action at this time.