mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-25 20:02:46 +01:00
17 lines
462 B
TypeScript
17 lines
462 B
TypeScript
/// <reference types="cypress" />
|
|
|
|
declare namespace Cypress {
|
|
interface Chainable {
|
|
/**
|
|
* Custom command to select DOM element by data-cy attribute.
|
|
* @example cy.dataCy('greeting')
|
|
*/
|
|
dataCy(value: string): Chainable<JQuery<HTMLElement>>;
|
|
/**
|
|
* Custom command to login user into the app.
|
|
* @example cy.login('admin', 'password)
|
|
*/
|
|
login(username: string, password: string): Chainable<JQuery<HTMLElement>>;
|
|
}
|
|
}
|