@bigbinary/neeto-playwright-commons 1.13.2 → 1.13.4
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 +2907 -2656
- package/index.cjs.js.map +1 -1
- package/index.d.ts +76 -17
- package/index.js +2907 -2656
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -35,6 +35,13 @@ interface VerifyToastParams {
|
|
|
35
35
|
closeAfterVerification: boolean;
|
|
36
36
|
toastType: "success" | "error";
|
|
37
37
|
}
|
|
38
|
+
interface VerifyHelpPopoverProps {
|
|
39
|
+
triggerElement?: Locator;
|
|
40
|
+
title?: string;
|
|
41
|
+
content?: string;
|
|
42
|
+
helpURL?: string;
|
|
43
|
+
customPageContext?: Page;
|
|
44
|
+
}
|
|
38
45
|
type ConditionProps = Record<string, string>[];
|
|
39
46
|
type FilterProps = Record<string, ConditionProps>;
|
|
40
47
|
type ParamFilters = FilterProps[];
|
|
@@ -81,6 +88,11 @@ interface UploadFileViaDispatchProps {
|
|
|
81
88
|
dispatchEvent?: string;
|
|
82
89
|
droppableZone?: Locator;
|
|
83
90
|
}
|
|
91
|
+
interface VerifyTooltipProps {
|
|
92
|
+
triggerElement: Locator;
|
|
93
|
+
content: string;
|
|
94
|
+
customPageContext?: Page;
|
|
95
|
+
}
|
|
84
96
|
declare class CustomCommands {
|
|
85
97
|
page: Page;
|
|
86
98
|
responses: string[];
|
|
@@ -363,13 +375,59 @@ declare class CustomCommands {
|
|
|
363
375
|
dispatchEvent,
|
|
364
376
|
droppableZone
|
|
365
377
|
}: UploadFileViaDispatchProps) => Promise<void>;
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* Method to verify content of the tooltip by hovering the trigger element.
|
|
381
|
+
*
|
|
382
|
+
* customPageContext (optional): The custom page on which tooltip needs to be verified. Defaults to this.page.
|
|
383
|
+
*
|
|
384
|
+
* triggerElement: The element hovering which the tooltip will be shown.
|
|
385
|
+
*
|
|
386
|
+
* content: The content of the tooltip container.
|
|
387
|
+
*
|
|
388
|
+
* @example
|
|
389
|
+
*
|
|
390
|
+
* await verifyTooltip({
|
|
391
|
+
* triggerElement: page.getByTestId("tooltip"),
|
|
392
|
+
* content: "content of tooltip container",
|
|
393
|
+
* });
|
|
394
|
+
* @endexample
|
|
395
|
+
*/
|
|
366
396
|
verifyTooltip: ({
|
|
367
397
|
triggerElement,
|
|
368
|
-
content
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
398
|
+
content,
|
|
399
|
+
customPageContext
|
|
400
|
+
}: VerifyTooltipProps) => Promise<void>;
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* Method to verify title, content and the help link of help popover by hovering the trigger element.
|
|
404
|
+
*
|
|
405
|
+
* customPageContext (optional): The custom page on which tooltip needs to be verified. Defaults to this.page.
|
|
406
|
+
*
|
|
407
|
+
* triggerElement: The element hovering which the tooltip will be shown.
|
|
408
|
+
*
|
|
409
|
+
* title (optional): The title of the tooltip container.
|
|
410
|
+
*
|
|
411
|
+
* content (optional): The content of the tooltip container.
|
|
412
|
+
*
|
|
413
|
+
* helpURL (optional): The help URL in tooltip container navigating to the help docs.
|
|
414
|
+
*
|
|
415
|
+
* @example
|
|
416
|
+
*
|
|
417
|
+
* await verifyHelpPopover({
|
|
418
|
+
* customPageContext: page,
|
|
419
|
+
* triggerElement: page.getByTestId("tooltip"),
|
|
420
|
+
* content: "content of tooltip container",
|
|
421
|
+
* });
|
|
422
|
+
* @endexample
|
|
423
|
+
*/
|
|
424
|
+
verifyHelpPopover: ({
|
|
425
|
+
triggerElement,
|
|
426
|
+
title,
|
|
427
|
+
content,
|
|
428
|
+
helpURL,
|
|
429
|
+
customPageContext
|
|
430
|
+
}: VerifyHelpPopoverProps) => Promise<void>;
|
|
373
431
|
}
|
|
374
432
|
type Range<N extends number, Acc extends number[] = []> = Acc["length"] extends N ? Exclude<Acc[number], 0 | Acc["length"]> | N : Range<N, [...Acc, Acc["length"]]>;
|
|
375
433
|
interface MessageSearchCriteria {
|
|
@@ -1821,21 +1879,12 @@ interface AddMemberProps$1 {
|
|
|
1821
1879
|
email: string;
|
|
1822
1880
|
role?: string;
|
|
1823
1881
|
appName: string;
|
|
1824
|
-
requestCount?: number;
|
|
1825
|
-
neetoPlaywrightUtilities: CustomCommands;
|
|
1826
1882
|
}
|
|
1827
1883
|
interface EditMemberProps$2 {
|
|
1828
1884
|
email: string;
|
|
1829
1885
|
firstName?: string;
|
|
1830
1886
|
lastName?: string;
|
|
1831
1887
|
newRole?: string;
|
|
1832
|
-
requestCount?: number;
|
|
1833
|
-
neetoPlaywrightUtilities: CustomCommands;
|
|
1834
|
-
}
|
|
1835
|
-
interface DeactiveMemberProps$1 {
|
|
1836
|
-
email: string;
|
|
1837
|
-
neetoPlaywrightUtilities: CustomCommands;
|
|
1838
|
-
requestCount?: number;
|
|
1839
1888
|
}
|
|
1840
1889
|
declare class Member {
|
|
1841
1890
|
private neetoPlaywrightUtilities;
|
|
@@ -1952,9 +2001,7 @@ declare class Member {
|
|
|
1952
2001
|
* });
|
|
1953
2002
|
* @endexample
|
|
1954
2003
|
*/
|
|
1955
|
-
deactivateMemberViaRequest: (
|
|
1956
|
-
email
|
|
1957
|
-
}: DeactiveMemberProps$1) => Promise<playwright_core.APIResponse | undefined>;
|
|
2004
|
+
deactivateMemberViaRequest: (email: string) => Promise<playwright_core.APIResponse | undefined>;
|
|
1958
2005
|
generateRandomTeamMembers: ({
|
|
1959
2006
|
count,
|
|
1960
2007
|
role
|
|
@@ -3800,6 +3847,14 @@ declare const LIST_MODIFIER_TAGS: {
|
|
|
3800
3847
|
*
|
|
3801
3848
|
* customDropDownMenu: Selector for custom dropdown menu,
|
|
3802
3849
|
*
|
|
3850
|
+
* popoverTitle: Selector for the title of the help popover,
|
|
3851
|
+
*
|
|
3852
|
+
* helpPopoverButton: Selector for help popover button,
|
|
3853
|
+
*
|
|
3854
|
+
* helpPopoverDesc: Selector for help popover description,
|
|
3855
|
+
*
|
|
3856
|
+
* helpPopoverLinkButton: Selector for help popover link button,
|
|
3857
|
+
*
|
|
3803
3858
|
*/
|
|
3804
3859
|
declare const COMMON_SELECTORS: {
|
|
3805
3860
|
emailInputError: string;
|
|
@@ -3891,6 +3946,10 @@ declare const COMMON_SELECTORS: {
|
|
|
3891
3946
|
buttonSpinner: string;
|
|
3892
3947
|
customSelectValueContainer: (label?: string) => string;
|
|
3893
3948
|
customDropDownMenu: (label?: string) => string;
|
|
3949
|
+
popoverTitle: string;
|
|
3950
|
+
helpPopoverButton: string;
|
|
3951
|
+
helpPopoverDesc: string;
|
|
3952
|
+
helpPopoverLinkButton: string;
|
|
3894
3953
|
};
|
|
3895
3954
|
/**
|
|
3896
3955
|
*
|