@bigbinary/neeto-commons-frontend 2.0.30 → 2.0.32

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,54 @@
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
+ description: string;
15
+ alias: string;
16
+ requestCount: number;
17
+ toastMessage: string;
18
+ }
19
+ ): Void;
20
+ interceptApi(
21
+ alias: string,
22
+ times?: number
23
+ ): Cypress.Chainable<Cypress.InterceptionOptions>;
24
+ waitForMultipleRequest(
25
+ alias: string,
26
+ times?: number
27
+ ): Chainable<JQuery<HTMLElement>>;
28
+
29
+ /**
30
+ * Make an HTTP request with specific method.
31
+ * @see https://on.cypress.io/request
32
+ */
33
+ apiRequest(
34
+ options: Cypress.RequestBody
35
+ ): Cypress.Chainable<Cypress.Response>;
36
+
37
+ reloadAndWait(requestCount?: number): Void;
38
+ selectOption(containerSelector: string, optionText: string): Void;
39
+ clickDropdownOption(optionText: string, dropdownSelector: string): Void;
40
+ getText(selector: string): Chainable<JQuery<HTMLElement>>;
41
+ getValue(selector: string): Chainable<JQuery<HTMLElement>>;
42
+ getIframe(iframeSelector: string): Chainable<JQuery<HTMLElement>>;
43
+
44
+ /**
45
+ * Command to open the url in the same window after clicking on a button that opens the url in a new tab
46
+ */
47
+ openInSameTabOnClick(props: {
48
+ url: string;
49
+ alias: string;
50
+ selector: string;
51
+ });
52
+ globalState(key: string): Void;
53
+ }
54
+ }