blob: 1bc5b73503b28fc143a064185e72a975241d9db7 [file] [log] [blame]
simon26e79f72022-10-05 22:16:08 -04001/*
2 * Copyright (C) 2022 Savoir-faire Linux Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as
6 * published by the Free Software Foundation; either version 3 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
13 *
14 * You should have received a copy of the GNU Affero General Public
15 * License along with this program. If not, see
16 * <https://www.gnu.org/licenses/>.
17 */
18
idillon0f8a91a2022-09-16 13:31:35 -040019/// <reference types="cypress" />
20// ***********************************************
21// This example commands.ts shows you how to
22// create various custom commands and overwrite
23// existing commands.
24//
25// For more comprehensive examples of custom
26// commands please read more here:
27// https://on.cypress.io/custom-commands
28// ***********************************************
29//
30//
31// -- This is a parent command --
32// Cypress.Commands.add('login', (email, password) => { ... })
33//
34//
35// -- This is a child command --
36// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
37//
38//
39// -- This is a dual command --
40// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
41//
42//
43// -- This will overwrite an existing command --
44// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
45//
46// declare global {
47// namespace Cypress {
48// interface Chainable {
49// login(email: string, password: string): Chainable<void>
50// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
51// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
52// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
53// }
54// }
simond47ef9e2022-09-28 22:24:28 -040055// }