Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
wayfinder/cypress/support/commands.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (25 sloc)
837 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *********************************************** | |
// This example commands.js shows you how to | |
// create various custom commands and overwrite | |
// existing commands. | |
// | |
// For more comprehensive examples of custom | |
// commands please read more here: | |
// https://on.cypress.io/custom-commands | |
// *********************************************** | |
// | |
// | |
// -- This is a parent command -- | |
// Cypress.Commands.add('login', (email, password) => { ... }) | |
// | |
// | |
// -- This is a child command -- | |
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) | |
// | |
// | |
// -- This is a dual command -- | |
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) | |
// | |
// | |
// -- This will overwrite an existing command -- | |
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) |