refactor: Set up Cypress as pnpm workspace (no-changelog) (#6049)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Iván Ovejero
2024-06-10 15:49:50 +02:00
committed by GitHub
parent bc3dcf706f
commit af3ac2db28
79 changed files with 435 additions and 315 deletions

View File

@@ -1,7 +1,7 @@
// Load type definitions that come with Cypress module
/// <reference types="cypress" />
import { Interception } from 'cypress/types/net-stubbing';
import type { Interception } from 'cypress/types/net-stubbing';
interface SigninPayload {
email: string;
@@ -18,7 +18,7 @@ declare global {
config(key: keyof SuiteConfigOverrides): boolean;
getByTestId(
selector: string,
...args: (Partial<Loggable & Timeoutable & Withinable & Shadow> | undefined)[]
...args: Array<Partial<Loggable & Timeoutable & Withinable & Shadow> | undefined>
): Chainable<JQuery<HTMLElement>>;
findChildByTestId(childTestId: string): Chainable<JQuery<HTMLElement>>;
createFixtureWorkflow(fixtureKey: string, workflowName: string): void;
@@ -36,7 +36,7 @@ declare global {
readClipboard(): Chainable<string>;
paste(pastePayload: string): void;
drag(
selector: string | Cypress.Chainable<JQuery<HTMLElement>>,
selector: string | Chainable<JQuery<HTMLElement>>,
target: [number, number],
options?: { abs?: boolean; index?: number; realMouse?: boolean; clickToFinish?: boolean },
): void;
@@ -45,8 +45,11 @@ declare global {
shouldNotHaveConsoleErrors(): void;
window(): Chainable<
AUTWindow & {
innerWidth: number;
innerHeight: number;
preventNodeViewBeforeUnload?: boolean;
featureFlags: {
override: (feature: string, value: any) => void;
override: (feature: string, value: unknown) => void;
};
}
>;