2022-11-08 04:21:10 -08:00
|
|
|
// Load type definitions that come with Cypress module
|
|
|
|
/// <reference types="cypress" />
|
|
|
|
|
2022-11-28 09:11:33 -08:00
|
|
|
interface SigninPayload {
|
|
|
|
email: string;
|
|
|
|
password: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface SetupPayload {
|
|
|
|
email: string;
|
|
|
|
password: string;
|
|
|
|
firstName: string;
|
|
|
|
lastName: string;
|
|
|
|
}
|
|
|
|
|
2022-11-08 04:21:10 -08:00
|
|
|
declare global {
|
|
|
|
namespace Cypress {
|
|
|
|
interface Chainable {
|
|
|
|
getByTestId(selector: string, ...args: (Partial<Loggable & Timeoutable & Withinable & Shadow> | undefined)[]): Chainable<JQuery<HTMLElement>>
|
2022-11-11 00:07:14 -08:00
|
|
|
findChildByTestId(childTestId: string): Chainable<JQuery<HTMLElement>>
|
|
|
|
createFixtureWorkflow(fixtureKey: string, workflowName: string): void;
|
2022-11-28 09:11:33 -08:00
|
|
|
signin(payload: SigninPayload): void;
|
|
|
|
setup(payload: SetupPayload): void;
|
|
|
|
setupOwner(payload: SetupPayload): void;
|
2022-11-24 03:52:09 -08:00
|
|
|
skipSetup(): void;
|
2022-11-28 09:11:33 -08:00
|
|
|
resetAll(): void;
|
2022-11-08 04:21:10 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export {};
|