umami/cypress/support/index.d.ts

17 lines
462 B
TypeScript
Raw Normal View History

2024-02-28 06:41:34 +01:00
/// <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>>;
2024-03-01 02:40:49 +01:00
/**
* Custom command to login user into the app.
* @example cy.login('admin', 'password)
*/
login(username: string, password: string): Chainable<JQuery<HTMLElement>>;
2024-02-28 06:41:34 +01:00
}
}