typescript-book icon indicating copy to clipboard operation
typescript-book copied to clipboard

Cypress Tests : parent / child / dual commands

Open basarat opened this issue 6 years ago • 0 comments

There are three kinds of 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) => { ... })

Mention these.

basarat avatar Apr 26 '19 00:04 basarat