-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.d.ts
46 lines (41 loc) · 1.18 KB
/
cypress.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
declare namespace Cypress {
interface Chainable<Subject> {
injectPurpleA11yScripts(): Chainable<void>;
runPurpleA11yScan(options?: PurpleA11yScanOptions): Chainable<void>;
terminatePurpleA11y(): Chainable<any>;
runPurpleA11yProcess(cliOptionsJson: CliOptionsJson): Chainable<unknown>;
checkResultFilesCreated(cliOptionsJson: CliOptionsJson, purpleA11yResultFolder: string, isIntegrationMode?: boolean): Chainable<unknown>;
checkReportHtmlScanData(cliOptionsJson: CliOptionsJson, purpleA11yResultFolder: string, isIntegrationMode?: boolean): Chainable<unknown>;
}
interface PurpleA11yScanOptions {
elementsToScan?: string[];
elementsToClick?: string[];
metadata?: string;
}
interface CliOptionsJson {
d?: string;
t?: string;
i?: string;
a?: string;
o?: string;
e?: string;
j?: string;
k?: string;
x?: string;
b?: string;
p?: number;
w?: number;
s?: string;
a?: string;
u?: string;
c?: string;
integrationViewport?: viewportSettings;
}
}
interface ViewportSettings {
width: number;
height: number;
}
interface Window {
runA11yScan: (elementsToScan?: string[]) => Promise<any>;
}