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 {
|
2022-12-15 07:39:59 -08:00
|
|
|
getByTestId(
|
|
|
|
selector: string,
|
|
|
|
...args: (Partial<Loggable & Timeoutable & Withinable & Shadow> | undefined)[]
|
|
|
|
): Chainable<JQuery<HTMLElement>>;
|
|
|
|
findChildByTestId(childTestId: string): Chainable<JQuery<HTMLElement>>;
|
2022-11-11 00:07:14 -08:00
|
|
|
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-12-13 02:55:51 -08:00
|
|
|
waitForLoad(): void;
|
2022-12-07 09:16:38 -08:00
|
|
|
grantBrowserPermissions(...permissions: string[]): void;
|
|
|
|
readClipboard(): Chainable<string>;
|
2022-12-15 07:39:59 -08:00
|
|
|
paste(pastePayload: string): void;
|
|
|
|
drag(selector: string, xDiff: number, yDiff: number): void;
|
2022-11-08 04:21:10 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export {};
|