2021-03-30 19:56:20 +00:00
|
|
|
// load type definitions that come with Cypress module
|
|
|
|
// <reference types="cypress" />
|
|
|
|
|
|
|
|
declare namespace Cypress {
|
|
|
|
interface Chainable {
|
|
|
|
/**
|
|
|
|
* Custom command to setup the testing environment.
|
|
|
|
*/
|
|
|
|
setup(): Chainable<Element>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom command to login the user programmatically using the fleet API.
|
|
|
|
*/
|
|
|
|
login(): Chainable<Element>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom command to log out the current user.
|
|
|
|
*/
|
|
|
|
logout(): Chainable<Element>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom command to setup the SMTP configuration for this testing environment.
|
2021-03-31 12:33:00 +00:00
|
|
|
*
|
|
|
|
* NOTE: login() command is required before this, as it will make authenticated
|
|
|
|
* requests to set up SMTP
|
2021-03-30 19:56:20 +00:00
|
|
|
*/
|
|
|
|
setupSMTP(): Chainable<Element>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom command to set up SSO auth with the local server.
|
|
|
|
*/
|
|
|
|
setupSSO(enable_idp_login?: boolean): Chainable<Element>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom command to login a user1@example.com via SSO.
|
|
|
|
*/
|
|
|
|
loginSSO(): Chainable<Element>;
|
|
|
|
}
|
|
|
|
}
|