11 lines
310 B
TypeScript
11 lines
310 B
TypeScript
declare namespace Cypress {
|
|
interface Chainable<Subject> {
|
|
/**
|
|
* Get one or more DOM elements by `data-testid`.
|
|
*
|
|
* @example
|
|
* cy.getId('searchButton') // Gets the <button data-testid="searchButton">Search</button>
|
|
*/
|
|
getId(selector: string, ...args): Chainable<any>;
|
|
}
|
|
}
|