n8n/cypress/types.ts
Iván Ovejero af3ac2db28
refactor: Set up Cypress as pnpm workspace (no-changelog) (#6049)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2024-06-10 15:49:50 +02:00

25 lines
548 B
TypeScript

export type IE2ETestPageElement = (
...args: unknown[]
) =>
| Cypress.Chainable<JQuery<HTMLElement>>
| Cypress.Chainable<JQuery<HTMLInputElement>>
| Cypress.Chainable<JQuery<HTMLButtonElement>>;
type Getter = IE2ETestPageElement | ((key: string | number) => IE2ETestPageElement);
export interface IE2ETestPage {
url?: string;
getters: Record<string, Getter>;
actions: Record<string, (...args: unknown[]) => void>;
}
interface Execution {
workflowId: string;
}
export interface ExecutionResponse {
data: {
results: Execution[];
};
}