File size: 509 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
/// <reference types="cypress" />
declare namespace Cypress {
type AbLoginParams = {
email?: string;
password?: string;
loginPath?: string;
}
type AbKeepLoggedInParams = {
cookie?: string;
}
interface Chainable<Subject> {
abLogin(params?: AbLoginParams): Chainable<any>;
abLoginAPI(params?: AbLoginParams): Chainable<any>;
abGetProperty(propertyPath: string, selector?: string): Chainable<any>;
abKeepLoggedIn(params?: AbKeepLoggedInParams): Chainable<any>;
}
}
|