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.
Install the module.
npm install cypress-commands
Add the following line to cypress/support/index.js
.
require('cypress-commands');
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"
]
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.
These commands do not exist in Cypress by default.
Contributors are always welcome! I really don't care if you are a beginner or an expert, all help is welcome.
First clone the repository and install the dependencies.
npm start
npm test