-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.ts
30 lines (25 loc) · 877 Bytes
/
index.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
declare namespace Cypress { // eslint-disable-line @typescript-eslint/no-unused-vars
interface cy {
/**
* Finds <v-text-field/> with a specified label and types text there
*/
vType(label: string, text: string): Chainable<null>;
/**
* Finds <v-button/> with a specified text and clicks on it
*/
vClick(label: string): Chainable<null>;
/**
* Finds <v-select/> with a specified label and select specified option
*/
vSelect(label: string, option: string): Chainable<null>;
/**
* Finds <v-checkbox>/> with a specified content and clicks on it
*/
vCheck(text: string): Chainable<null>;
/**
* Verifies that http cypress stub has been called #N times
* use route(...}.as('alias') to give request a name
*/
assertCalledTimes(alias: string, timeCalled: number): Chainable<null>;
}
}