-
Notifications
You must be signed in to change notification settings - Fork 35
/
index.d.ts
40 lines (39 loc) · 1.26 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
declare namespace Cypress {
interface Chainable {
/**
* Custom command to select DOM element by data-cy attribute.
* @example cy.dataCy('greeting')
*/
uiLogin(email: string, password: string): Chainable<Element>;
uiLogout(): Chainable<Element>;
createAccessCode(accessCode: {
featureLiveChat: boolean;
featureTherapy: boolean;
therapySessionsRemaining: number;
therapySessionsRedeemed: number;
}): Chainable<any>;
createUser({
codeInput,
emailInput,
passwordInput,
partnerId,
}: {
codeInput?: string;
emailInput: string;
passwordInput?: string;
partnerId?: string;
}): Chainable<Element>;
deleteUser(): Chainable<Element>;
uiCreateAccessCode(): Chainable<any>;
deleteCypressAccessCodes(): Chainable<Element>;
getAccessCode(): Chainable<Element>;
getAuthEmail(): Chainable<Element>;
clearUserState(): Chainable<Element>;
logInWithEmailAndPassword(email: string, password: string): Chainable<Element>;
logout(): Chainable<Element>;
deleteAllCypressUsers(): Chainable<Element>;
cleanUpTestState(): Chainable<Element>;
visitGermanPage(url: string): Chainable<Element>;
visitSpanishPage(url: string): Chainable<Element>;
}
}