@bigbinary/neeto-playwright-commons 1.8.23 → 1.8.25
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.
- package/index.cjs.js +2490 -246
- package/index.cjs.js.map +1 -1
- package/index.d.ts +6 -1
- package/index.js +2384 -140
- package/index.js.map +1 -1
- package/package.json +4 -2
package/index.d.ts
CHANGED
|
@@ -24,7 +24,11 @@ interface VerifySuccessToastParams {
|
|
|
24
24
|
message: string;
|
|
25
25
|
closeAfterVerification: boolean;
|
|
26
26
|
}
|
|
27
|
+
type ConditionProps = Record<string, string>[];
|
|
28
|
+
type FilterProps = Record<string, ConditionProps>;
|
|
29
|
+
type ParamFilters = FilterProps[];
|
|
27
30
|
type BasicTypesInterface = Record<string, number | string | boolean>;
|
|
31
|
+
type ParamProps = Record<string, number | string | boolean | ParamFilters>;
|
|
28
32
|
type HttpMethods = "get" | "patch" | "post" | "put" | "delete";
|
|
29
33
|
interface ApiRequestProps {
|
|
30
34
|
url: string;
|
|
@@ -32,7 +36,7 @@ interface ApiRequestProps {
|
|
|
32
36
|
headers?: BasicTypesInterface;
|
|
33
37
|
data?: Record<string, unknown>;
|
|
34
38
|
method?: HttpMethods;
|
|
35
|
-
params?:
|
|
39
|
+
params?: ParamProps;
|
|
36
40
|
}
|
|
37
41
|
type ApiRequest = (props: ApiRequestProps & Record<string, unknown>) => Promise<APIResponse | undefined>;
|
|
38
42
|
interface FieldValue {
|
|
@@ -610,6 +614,7 @@ declare const skipTest: {
|
|
|
610
614
|
forDevelopmentEnv: () => void;
|
|
611
615
|
forReviewEnv: () => void;
|
|
612
616
|
forAllExceptStagingEnv: () => void;
|
|
617
|
+
forNonNightlyRun: () => void;
|
|
613
618
|
};
|
|
614
619
|
declare const shouldSkipSetupAndTeardown: () => boolean | "";
|
|
615
620
|
|