@bigbinary/neeto-playwright-commons 1.13.3 → 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 +2906 -2655
- package/index.cjs.js.map +1 -1
- package/index.d.ts +75 -5
- package/index.js +2906 -2655
- 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 {
|
|
@@ -3789,6 +3847,14 @@ declare const LIST_MODIFIER_TAGS: {
|
|
|
3789
3847
|
*
|
|
3790
3848
|
* customDropDownMenu: Selector for custom dropdown menu,
|
|
3791
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
|
+
*
|
|
3792
3858
|
*/
|
|
3793
3859
|
declare const COMMON_SELECTORS: {
|
|
3794
3860
|
emailInputError: string;
|
|
@@ -3880,6 +3946,10 @@ declare const COMMON_SELECTORS: {
|
|
|
3880
3946
|
buttonSpinner: string;
|
|
3881
3947
|
customSelectValueContainer: (label?: string) => string;
|
|
3882
3948
|
customDropDownMenu: (label?: string) => string;
|
|
3949
|
+
popoverTitle: string;
|
|
3950
|
+
helpPopoverButton: string;
|
|
3951
|
+
helpPopoverDesc: string;
|
|
3952
|
+
helpPopoverLinkButton: string;
|
|
3883
3953
|
};
|
|
3884
3954
|
/**
|
|
3885
3955
|
*
|