mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
16 lines
462 B
TypeScript
16 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>>;
|
|
}
|
|
}
|