n8n/cypress/support/index.ts

19 lines
654 B
TypeScript
Raw Normal View History

// 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>>
findChildByTestId(childTestId: string): Chainable<JQuery<HTMLElement>>
createFixtureWorkflow(fixtureKey: string, workflowName: string): void;
signin(email: string, password: string): void;
// todo: rename to setup
signup(email: string, firstName: string, lastName: string, password: string): void;
skipSetup(): void;
}
}
}
export {};