1
/// <reference types="cypress" />
2
// ***********************************************
3
// This example commands.ts shows you how to
4
// create various custom commands and overwrite
7
// For more comprehensive examples of custom
8
// commands please read more here:
9
// https://on.cypress.io/custom-commands
10
// ***********************************************
13
// -- This is a parent command --
14
// Cypress.Commands.add('login', (email, password) => { ... })
17
// -- This is a child command --
18
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
21
// -- This is a dual command --
22
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
25
// -- This will overwrite an existing command --
26
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
30
// interface Chainable {
31
// login(email: string, password: string): Chainable<void>
32
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
33
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
34
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>