forked from abramenal/cypress-shadow-dom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
22 lines (21 loc) · 723 Bytes
/
index.d.ts
File metadata and controls
22 lines (21 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
declare namespace Cypress {
type EventOptions = {
log?: Boolean;
force?: Boolean;
bubbles?: Boolean;
cancelable?: Boolean;
timeout?: Number;
composed?: Boolean;
};
interface Chainable<Subject> {
shadowClick(options?: EventOptions): Chainable<Subject>;
shadowContains(content: string): Chainable<Subject>;
shadowEq(index: number): Chainable<Subject>;
shadowFind(selector: string): Chainable<Subject>;
shadowFirst(): Chainable<Subject>;
shadowGet(selector: string): Chainable<Subject>;
shadowLast(): Chainable<Subject>;
shadowTrigger(eventName: string, eventOptions?: EventOptions): Chainable<Subject>;
shadowType(content: string): Chainable<Subject>;
}
}