2022-11-08 04:21:10 -08:00
|
|
|
// Load type definitions that come with Cypress module
|
|
|
|
/// <reference types="cypress" />
|
|
|
|
|
|
|
|
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-08 04:21:10 -08:00
|
|
|
signin(email: string, password: string): void;
|
2022-11-24 03:52:09 -08:00
|
|
|
// todo: rename to setup
|
2022-11-08 04:21:10 -08:00
|
|
|
signup(email: string, firstName: string, lastName: string, password: string): void;
|
2022-11-24 03:52:09 -08:00
|
|
|
skipSetup(): void;
|
2022-11-08 04:21:10 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export {};
|