@bigbinary/neeto-commons-frontend 2.0.30 → 2.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,53 @@
1
+ declare namespace Cypress {
2
+ interface Chainable {
3
+ clearAndType(selector: any, text: any): Void;
4
+ clearAndTypeFast(selector: any, text: any): Void;
5
+ clearByClickAndTypeFast(selector: any, text: any): Void;
6
+ typeFast(selector: any, text: any): Void;
7
+ typeAndEnter(selector: any, text: any): Void;
8
+ verifyToastMessage(message: any): Void;
9
+ continueOnAlert(
10
+ alias:
11
+ | string
12
+ | {
13
+ title: string;
14
+ alias: string;
15
+ requestCount: number;
16
+ toastMessage: string;
17
+ }
18
+ ): Void;
19
+ interceptApi(
20
+ alias: string,
21
+ times?: number
22
+ ): Cypress.Chainable<Cypress.InterceptionOptions>;
23
+ waitForMultipleRequest(
24
+ alias: string,
25
+ times?: number
26
+ ): Chainable<JQuery<HTMLElement>>;
27
+
28
+ /**
29
+ * Make an HTTP request with specific method.
30
+ * @see https://on.cypress.io/request
31
+ */
32
+ apiRequest(
33
+ options: Cypress.RequestBody
34
+ ): Cypress.Chainable<Cypress.Response>;
35
+
36
+ reloadAndWait(requestCount?: number): Void;
37
+ selectOption(containerSelector: string, optionText: string): Void;
38
+ clickDropdownOption(optionText: string, dropdownSelector: string): Void;
39
+ getText(selector: string): Chainable<JQuery<HTMLElement>>;
40
+ getValue(selector: string): Chainable<JQuery<HTMLElement>>;
41
+ getIframe(iframeSelector: string): Chainable<JQuery<HTMLElement>>;
42
+
43
+ /**
44
+ * Command to open the url in the same window after clicking on a button that opens the url in a new tab
45
+ */
46
+ openInSameTabOnClick(props: {
47
+ url: string;
48
+ alias: string;
49
+ selector: string;
50
+ });
51
+ globalState(key: string): Void;
52
+ }
53
+ }