forked from informatici/openhospital-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.d.ts
32 lines (28 loc) · 862 Bytes
/
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
import { mount } from "cypress/react";
// Augment the Cypress namespace to include type definitions for
// your custom command.
// Alternatively, can be defined in cypress/support/component.d.ts
// with a <reference path="./component" /> at the top of your spec.
declare global {
namespace Cypress {
interface Chainable {
mount: typeof mount;
/**
* select DOM element by data-cy attribute
*/
dataCy(value: string): Chainable<JQuery<HTMLElement>>;
/**
* select DOM element by data-value attribute
*/
dataValue(value: string): Chainable<JQuery<HTMLElement>>;
/**
* select DOM element by id
*/
byId(value: string): Chainable<JQuery<HTMLElement>>;
/**
* authenticate by setting a session storage
*/
authenticate(value: string): void;
}
}
}