1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 /// <reference types="cypress" />
6 // ***********************************************
7 // This example commands.ts shows you how to
8 // create various custom commands and overwrite
11 // For more comprehensive examples of custom
12 // commands please read more here:
13 // https://on.cypress.io/custom-commands
14 // ***********************************************
17 // -- This is a parent command --
18 // Cypress.Commands.add('login', (email, password) => { ... })
21 // -- This is a child command --
22 // Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
25 // -- This is a dual command --
26 // Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
29 // -- This will overwrite an existing command --
30 // Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
33 // namespace Cypress {
34 // interface Chainable {
35 // login(email: string, password: string): Chainable<void>
36 // drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
37 // dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
38 // visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>