2021-03-01 15:06:04 +00:00
|
|
|
declare namespace Cypress {
|
2021-09-16 10:24:21 +00:00
|
|
|
interface Chainable {
|
2021-03-01 15:06:04 +00:00
|
|
|
/**
|
|
|
|
* 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>;
|
|
|
|
}
|
|
|
|
}
|