mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 15:44:06 -08:00
db49f052bc
* test: add tests for pinning * test: add test for value * test: add pinned data tests * test: refactor into ndv * refactor: move to ndv * refactor: rename node * test: fix test * test: fix refactor * test: remove unused id * test: update test * test: chain rename input * test: refactor invoking text * test: fix ndv tests * test: move test id * test: add tests for mapping * test: update selectors * test: add mapping * test: remove wait * test: add back line removed by mistake * test: refactor to support both in/output displays * test: add display mode switching * test: fix drop * chore: clean up change * refactor: add draganddrop * fix: fix drag and drop * test: add mapping test for second value * test: update text * test: update param
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
// Load type definitions that come with Cypress module
|
|
/// <reference types="cypress" />
|
|
|
|
interface SigninPayload {
|
|
email: string;
|
|
password: string;
|
|
}
|
|
|
|
interface SetupPayload {
|
|
email: string;
|
|
password: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
}
|
|
|
|
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(payload: SigninPayload): void;
|
|
setup(payload: SetupPayload): void;
|
|
setupOwner(payload: SetupPayload): void;
|
|
skipSetup(): void;
|
|
resetAll(): void;
|
|
enableFeature(feature: string): void;
|
|
waitForLoad(): void;
|
|
grantBrowserPermissions(...permissions: string[]): void;
|
|
readClipboard(): Chainable<string>;
|
|
paste(pastePayload: string): void;
|
|
drag(selector: string, target: [number, number]): void;
|
|
draganddrop(selector: string, target: string): void;
|
|
}
|
|
}
|
|
}
|
|
|
|
export {};
|