|
| 1 | +/******************************************************************************** |
| 2 | + * Copyright (c) 2022, 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) |
| 3 | + * Copyright (c) 2022, 2023 ZF Friedrichshafen AG |
| 4 | + * Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation |
| 5 | + * |
| 6 | + * See the NOTICE file(s) distributed with this work for additional |
| 7 | + * information regarding copyright ownership. |
| 8 | + * |
| 9 | + * This program and the accompanying materials are made available under the |
| 10 | + * terms of the Apache License, Version 2.0 which is available at |
| 11 | + * https://www.apache.org/licenses/LICENSE-2.0. |
| 12 | + * |
| 13 | + * Unless required by applicable law or agreed to in writing, software |
| 14 | + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 15 | + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 16 | + * License for the specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + * |
| 19 | + * SPDX-License-Identifier: Apache-2.0 |
| 20 | + ********************************************************************************/ |
| 21 | + |
| 22 | +/// <reference types="cypress" /> |
| 23 | +// *********************************************** |
| 24 | +// This example commands.ts shows you how to |
| 25 | +// create various custom commands and overwrite |
| 26 | +// existing commands. |
| 27 | +// |
| 28 | +// For more comprehensive examples of custom |
| 29 | +// commands please read more here: |
| 30 | +// https://on.cypress.io/custom-commands |
| 31 | +// *********************************************** |
| 32 | +// |
| 33 | +// |
| 34 | +// -- This is a parent command -- |
| 35 | +// Cypress.Commands.add('login', (email, password) => { ... }) |
| 36 | +// |
| 37 | +// |
| 38 | +// -- This is a child command -- |
| 39 | +// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) |
| 40 | +// |
| 41 | +// |
| 42 | +// -- This is a dual command -- |
| 43 | +// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) |
| 44 | +// |
| 45 | +// |
| 46 | +// -- This will overwrite an existing command -- |
| 47 | +// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) |
| 48 | +// |
| 49 | +// declare global { |
| 50 | +// namespace Cypress { |
| 51 | +// interface Chainable { |
| 52 | +// login(email: string, password: string): Chainable<void> |
| 53 | +// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element> |
| 54 | +// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element> |
| 55 | +// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element> |
| 56 | +// } |
| 57 | +// } |
| 58 | +// } |
0 commit comments