2024-02-28 06:41:34 +01:00
|
|
|
/// <reference types="cypress" />
|
|
|
|
|
|
|
|
declare namespace Cypress {
|
|
|
|
interface Chainable {
|
|
|
|
/**
|
2024-03-01 22:00:59 +01:00
|
|
|
* Custom command to select DOM element by data-test attribute.
|
|
|
|
* @example cy.getDataTest('greeting')
|
2024-02-28 06:41:34 +01:00
|
|
|
*/
|
2024-03-01 22:00:59 +01:00
|
|
|
getDataTest(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-03-01 22:00:59 +01:00
|
|
|
/**
|
|
|
|
* Custom command to create a website
|
|
|
|
* @example cy.addWebsite('test', 'test.com')
|
|
|
|
*/
|
|
|
|
addWebsite(name: string, domain: string): Chainable<JQuery<HTMLElement>>;
|
|
|
|
/**
|
|
|
|
* Custom command to create a website
|
|
|
|
* @example cy.deleteWebsite('02d89813-7a72-41e1-87f0-8d668f85008b')
|
|
|
|
*/
|
|
|
|
deleteWebsite(websiteId: string): Chainable<JQuery<HTMLElement>>;
|
2024-02-28 06:41:34 +01:00
|
|
|
}
|
|
|
|
}
|