// Load type definitions that come with Cypress module /// import type { IN8nUISettings } from 'n8n-workflow'; Cypress.Keyboard.defaults({ keystrokeDelay: 0, }); interface SigninPayload { email: string; password: string; } interface DragAndDropOptions { position: 'top' | 'center' | 'bottom'; } declare global { namespace Cypress { interface SuiteConfigOverrides { disableAutoLogin: boolean; } interface Chainable { config(key: keyof SuiteConfigOverrides): boolean; getByTestId( selector: string, ...args: Array | undefined> ): Chainable>; findChildByTestId(childTestId: string): Chainable>; /** * Creates a workflow from the given fixture and optionally renames it. * * @param fixtureKey * @param [workflowName] Optional name for the workflow. A random nanoid is used if not given */ createFixtureWorkflow(fixtureKey: string, workflowName?: string): void; /** @deprecated use signinAsOwner, signinAsAdmin or signinAsMember instead */ signin(payload: SigninPayload): void; signinAsOwner(): void; signinAsAdmin(): void; /** * Omitting the index will default to index 0. */ signinAsMember(index?: number): void; signout(): void; overrideSettings(value: Partial): void; enableFeature(feature: string): void; disableFeature(feature: string): void; enableQueueMode(): void; disableQueueMode(): void; changeQuota(feature: string, value: number): void; waitForLoad(waitForIntercepts?: boolean): void; grantBrowserPermissions(...permissions: string[]): void; readClipboard(): Chainable; paste(pastePayload: string): void; drag( selector: string | Chainable>, target: [number, number], options?: { abs?: boolean; index?: number; realMouse?: boolean; clickToFinish?: boolean }, ): void; draganddrop( draggableSelector: string, droppableSelector: string, options?: Partial, ): void; push(type: string, data: unknown): void; shouldNotHaveConsoleErrors(): void; window(): Chainable< AUTWindow & { innerWidth: number; innerHeight: number; preventNodeViewBeforeUnload?: boolean; maxPinnedDataSize?: number; featureFlags: { override: (feature: string, value: unknown) => void; }; } >; resetDatabase(): void; setAppDate(targetDate: number | Date): void; } } } export {};