21720:
[arvados.git] / services / workbench2 / cypress / support / commands.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 /// <reference types="cypress" />
6 // ***********************************************
7 // This example commands.ts shows you how to
8 // create various custom commands and overwrite
9 // existing commands.
10 //
11 // For more comprehensive examples of custom
12 // commands please read more here:
13 // https://on.cypress.io/custom-commands
14 // ***********************************************
15 //
16 //
17 // -- This is a parent command --
18 // Cypress.Commands.add('login', (email, password) => { ... })
19 //
20 //
21 // -- This is a child command --
22 // Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
23 //
24 //
25 // -- This is a dual command --
26 // Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
27 //
28 //
29 // -- This will overwrite an existing command --
30 // Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
31 //
32 // declare global {
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>
39 //     }
40 //   }
41 // }