ngx-com 0.1.16 → 0.1.18

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.
Files changed (82) hide show
  1. package/fesm2022/ngx-com-components-alert-testing.mjs +80 -0
  2. package/fesm2022/ngx-com-components-alert-testing.mjs.map +1 -0
  3. package/fesm2022/ngx-com-components-calendar-testing.mjs +157 -0
  4. package/fesm2022/ngx-com-components-calendar-testing.mjs.map +1 -0
  5. package/fesm2022/ngx-com-components-carousel-testing.mjs +121 -0
  6. package/fesm2022/ngx-com-components-carousel-testing.mjs.map +1 -0
  7. package/fesm2022/ngx-com-components-checkbox-testing.mjs +113 -0
  8. package/fesm2022/ngx-com-components-checkbox-testing.mjs.map +1 -0
  9. package/fesm2022/ngx-com-components-checkbox.mjs +2 -2
  10. package/fesm2022/ngx-com-components-checkbox.mjs.map +1 -1
  11. package/fesm2022/ngx-com-components-code-block-testing.mjs +88 -0
  12. package/fesm2022/ngx-com-components-code-block-testing.mjs.map +1 -0
  13. package/fesm2022/ngx-com-components-collapsible-testing.mjs +104 -0
  14. package/fesm2022/ngx-com-components-collapsible-testing.mjs.map +1 -0
  15. package/fesm2022/ngx-com-components-confirm-testing.mjs +150 -0
  16. package/fesm2022/ngx-com-components-confirm-testing.mjs.map +1 -0
  17. package/fesm2022/ngx-com-components-datepicker-testing.mjs +137 -0
  18. package/fesm2022/ngx-com-components-datepicker-testing.mjs.map +1 -0
  19. package/fesm2022/ngx-com-components-dialog-testing.mjs +109 -0
  20. package/fesm2022/ngx-com-components-dialog-testing.mjs.map +1 -0
  21. package/fesm2022/ngx-com-components-dialog.mjs +18 -18
  22. package/fesm2022/ngx-com-components-dialog.mjs.map +1 -1
  23. package/fesm2022/ngx-com-components-dropdown.mjs +39 -0
  24. package/fesm2022/ngx-com-components-dropdown.mjs.map +1 -1
  25. package/fesm2022/ngx-com-components-form-field-testing.mjs +140 -0
  26. package/fesm2022/ngx-com-components-form-field-testing.mjs.map +1 -0
  27. package/fesm2022/ngx-com-components-form-field.mjs +5 -1
  28. package/fesm2022/ngx-com-components-form-field.mjs.map +1 -1
  29. package/fesm2022/ngx-com-components-menu-testing.mjs +298 -0
  30. package/fesm2022/ngx-com-components-menu-testing.mjs.map +1 -0
  31. package/fesm2022/ngx-com-components-paginator-testing.mjs +128 -0
  32. package/fesm2022/ngx-com-components-paginator-testing.mjs.map +1 -0
  33. package/fesm2022/ngx-com-components-popover-testing.mjs +115 -0
  34. package/fesm2022/ngx-com-components-popover-testing.mjs.map +1 -0
  35. package/fesm2022/ngx-com-components-radio-testing.mjs +157 -0
  36. package/fesm2022/ngx-com-components-radio-testing.mjs.map +1 -0
  37. package/fesm2022/ngx-com-components-radio.mjs +2 -2
  38. package/fesm2022/ngx-com-components-radio.mjs.map +1 -1
  39. package/fesm2022/ngx-com-components-segmented-control-testing.mjs +122 -0
  40. package/fesm2022/ngx-com-components-segmented-control-testing.mjs.map +1 -0
  41. package/fesm2022/ngx-com-components-sort-testing.mjs +108 -0
  42. package/fesm2022/ngx-com-components-sort-testing.mjs.map +1 -0
  43. package/fesm2022/ngx-com-components-switch-testing.mjs +103 -0
  44. package/fesm2022/ngx-com-components-switch-testing.mjs.map +1 -0
  45. package/fesm2022/ngx-com-components-switch.mjs +2 -2
  46. package/fesm2022/ngx-com-components-switch.mjs.map +1 -1
  47. package/fesm2022/ngx-com-components-table-testing.mjs +198 -0
  48. package/fesm2022/ngx-com-components-table-testing.mjs.map +1 -0
  49. package/fesm2022/ngx-com-components-tabs-testing.mjs +126 -0
  50. package/fesm2022/ngx-com-components-tabs-testing.mjs.map +1 -0
  51. package/fesm2022/ngx-com-components-timepicker-testing.mjs +117 -0
  52. package/fesm2022/ngx-com-components-timepicker-testing.mjs.map +1 -0
  53. package/fesm2022/ngx-com-components-toast-testing.mjs +172 -0
  54. package/fesm2022/ngx-com-components-toast-testing.mjs.map +1 -0
  55. package/fesm2022/ngx-com-components-toast.mjs +4 -4
  56. package/fesm2022/ngx-com-components-toast.mjs.map +1 -1
  57. package/fesm2022/ngx-com-components-tooltip-testing.mjs +117 -0
  58. package/fesm2022/ngx-com-components-tooltip-testing.mjs.map +1 -0
  59. package/package.json +89 -1
  60. package/types/ngx-com-components-alert-testing.d.ts +41 -0
  61. package/types/ngx-com-components-calendar-testing.d.ts +80 -0
  62. package/types/ngx-com-components-carousel-testing.d.ts +51 -0
  63. package/types/ngx-com-components-checkbox-testing.d.ts +56 -0
  64. package/types/ngx-com-components-code-block-testing.d.ts +45 -0
  65. package/types/ngx-com-components-collapsible-testing.d.ts +53 -0
  66. package/types/ngx-com-components-confirm-testing.d.ts +78 -0
  67. package/types/ngx-com-components-datepicker-testing.d.ts +61 -0
  68. package/types/ngx-com-components-dialog-testing.d.ts +57 -0
  69. package/types/ngx-com-components-dropdown.d.ts +12 -0
  70. package/types/ngx-com-components-form-field-testing.d.ts +61 -0
  71. package/types/ngx-com-components-menu-testing.d.ts +167 -0
  72. package/types/ngx-com-components-paginator-testing.d.ts +58 -0
  73. package/types/ngx-com-components-popover-testing.d.ts +63 -0
  74. package/types/ngx-com-components-radio-testing.d.ts +86 -0
  75. package/types/ngx-com-components-segmented-control-testing.d.ts +66 -0
  76. package/types/ngx-com-components-sort-testing.d.ts +62 -0
  77. package/types/ngx-com-components-switch-testing.d.ts +52 -0
  78. package/types/ngx-com-components-table-testing.d.ts +124 -0
  79. package/types/ngx-com-components-tabs-testing.d.ts +67 -0
  80. package/types/ngx-com-components-timepicker-testing.d.ts +53 -0
  81. package/types/ngx-com-components-toast-testing.d.ts +93 -0
  82. package/types/ngx-com-components-tooltip-testing.d.ts +57 -0
@@ -0,0 +1,124 @@
1
+ import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing';
2
+
3
+ /** Harness filters for ComTableCellHarness. */
4
+ interface ComTableCellHarnessFilters extends BaseHarnessFilters {
5
+ /** Filter by the cell's text content. */
6
+ text?: string | RegExp;
7
+ }
8
+ /** Harness filters for ComTableRowHarness. */
9
+ type ComTableRowHarnessFilters = BaseHarnessFilters;
10
+ /** Harness filters for ComTableHeaderRowHarness. */
11
+ type ComTableHeaderRowHarnessFilters = BaseHarnessFilters;
12
+ /** Harness filters for ComTableFooterRowHarness. */
13
+ type ComTableFooterRowHarnessFilters = BaseHarnessFilters;
14
+ /** Harness filters for ComTableHarness. */
15
+ interface ComTableHarnessFilters extends BaseHarnessFilters {
16
+ /** Filter by the table's aria-label. */
17
+ ariaLabel?: string | RegExp;
18
+ }
19
+ /**
20
+ * Harness for interacting with a table cell (`<th>` or `<td>`) in tests.
21
+ */
22
+ declare class ComTableCellHarness extends ComponentHarness {
23
+ static hostSelector: string;
24
+ /**
25
+ * Gets a HarnessPredicate for matching table cells.
26
+ * @param options Filter options.
27
+ */
28
+ static with(options?: ComTableCellHarnessFilters): HarnessPredicate<ComTableCellHarness>;
29
+ /** Gets the cell's text content. */
30
+ getText(): Promise<string>;
31
+ }
32
+ /**
33
+ * Harness for interacting with a table header row (`<thead> <tr>`) in tests.
34
+ */
35
+ declare class ComTableHeaderRowHarness extends ComponentHarness {
36
+ static hostSelector: string;
37
+ /**
38
+ * Gets a HarnessPredicate for matching header rows.
39
+ * @param options Filter options.
40
+ */
41
+ static with(options?: ComTableHeaderRowHarnessFilters): HarnessPredicate<ComTableHeaderRowHarness>;
42
+ /** Gets all header cells in this row, optionally filtered. */
43
+ getCells(filters?: ComTableCellHarnessFilters): Promise<ComTableCellHarness[]>;
44
+ /** Gets the text content of all header cells. */
45
+ getCellTexts(): Promise<string[]>;
46
+ }
47
+ /**
48
+ * Harness for interacting with a table body row (`<tbody> <tr>`) in tests.
49
+ */
50
+ declare class ComTableRowHarness extends ComponentHarness {
51
+ static hostSelector: string;
52
+ /**
53
+ * Gets a HarnessPredicate for matching body rows.
54
+ * @param options Filter options.
55
+ */
56
+ static with(options?: ComTableRowHarnessFilters): HarnessPredicate<ComTableRowHarness>;
57
+ /** Gets all cells in this row, optionally filtered. */
58
+ getCells(filters?: ComTableCellHarnessFilters): Promise<ComTableCellHarness[]>;
59
+ /** Gets the text content of all cells in this row. */
60
+ getCellTexts(): Promise<string[]>;
61
+ /** Clicks the row. Useful for tables with clickable rows. */
62
+ click(): Promise<void>;
63
+ /** Whether the row is clickable (has tabindex="0"). */
64
+ isClickable(): Promise<boolean>;
65
+ }
66
+ /**
67
+ * Harness for interacting with a table footer row (`<tfoot> <tr>`) in tests.
68
+ */
69
+ declare class ComTableFooterRowHarness extends ComponentHarness {
70
+ static hostSelector: string;
71
+ /**
72
+ * Gets a HarnessPredicate for matching footer rows.
73
+ * @param options Filter options.
74
+ */
75
+ static with(options?: ComTableFooterRowHarnessFilters): HarnessPredicate<ComTableFooterRowHarness>;
76
+ /** Gets all cells in this footer row, optionally filtered. */
77
+ getCells(filters?: ComTableCellHarnessFilters): Promise<ComTableCellHarness[]>;
78
+ /** Gets the text content of all cells in this footer row. */
79
+ getCellTexts(): Promise<string[]>;
80
+ }
81
+ /**
82
+ * Harness for interacting with a ComTable in tests.
83
+ */
84
+ declare class ComTableHarness extends ComponentHarness {
85
+ static hostSelector: string;
86
+ private readonly tableElement;
87
+ /**
88
+ * Gets a HarnessPredicate for matching tables.
89
+ * @param options Filter options.
90
+ */
91
+ static with(options?: ComTableHarnessFilters): HarnessPredicate<ComTableHarness>;
92
+ /** Gets the table's aria-label. */
93
+ getAriaLabel(): Promise<string | null>;
94
+ /** Whether the table is currently loading (aria-busy="true"). */
95
+ isLoading(): Promise<boolean>;
96
+ /** Gets all header rows. */
97
+ getHeaderRows(): Promise<ComTableHeaderRowHarness[]>;
98
+ /** Gets the text content of all header cells from the first header row. */
99
+ getHeaderCellTexts(): Promise<string[]>;
100
+ /** Gets all body rows, optionally filtered. */
101
+ getRows(filters?: ComTableRowHarnessFilters): Promise<ComTableRowHarness[]>;
102
+ /** Gets the number of body rows. */
103
+ getRowCount(): Promise<number>;
104
+ /**
105
+ * Gets the text content of all body cells as a 2D array.
106
+ * Each inner array contains the cell texts for a single row.
107
+ */
108
+ getCellTexts(): Promise<string[][]>;
109
+ /** Gets all footer rows. */
110
+ getFooterRows(): Promise<ComTableFooterRowHarness[]>;
111
+ /** Gets the text content of all footer cells from the first footer row. */
112
+ getFooterCellTexts(): Promise<string[]>;
113
+ /** Whether the table is disabled (aria-disabled). */
114
+ isDisabled(): Promise<boolean>;
115
+ /** Whether the table host is focused. */
116
+ isFocused(): Promise<boolean>;
117
+ /** Focuses the table host element. */
118
+ focus(): Promise<void>;
119
+ /** Blurs the table host element. */
120
+ blur(): Promise<void>;
121
+ }
122
+
123
+ export { ComTableCellHarness, ComTableFooterRowHarness, ComTableHarness, ComTableHeaderRowHarness, ComTableRowHarness };
124
+ export type { ComTableCellHarnessFilters, ComTableFooterRowHarnessFilters, ComTableHarnessFilters, ComTableHeaderRowHarnessFilters, ComTableRowHarnessFilters };
@@ -0,0 +1,67 @@
1
+ import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing';
2
+
3
+ /** Harness filters for ComTabHarness. */
4
+ interface ComTabHarnessFilters extends BaseHarnessFilters {
5
+ /** Filter by the tab's label text. */
6
+ label?: string | RegExp;
7
+ /** Filter by whether the tab is selected. */
8
+ selected?: boolean;
9
+ /** Filter by whether the tab is disabled. */
10
+ disabled?: boolean;
11
+ }
12
+ /** Harness filters for ComTabGroupHarness. */
13
+ type ComTabGroupHarnessFilters = BaseHarnessFilters;
14
+ /**
15
+ * Harness for interacting with an individual tab button in tests.
16
+ */
17
+ declare class ComTabHarness extends ComponentHarness {
18
+ static hostSelector: string;
19
+ private readonly closeButton;
20
+ /**
21
+ * Gets a HarnessPredicate for matching tab buttons.
22
+ * @param options Filter options.
23
+ */
24
+ static with(options?: ComTabHarnessFilters): HarnessPredicate<ComTabHarness>;
25
+ /** Gets the tab's label text. */
26
+ getLabel(): Promise<string>;
27
+ /** Whether the tab is currently selected. */
28
+ isSelected(): Promise<boolean>;
29
+ /** Whether the tab is disabled. */
30
+ isDisabled(): Promise<boolean>;
31
+ /** Clicks the tab to select it. */
32
+ select(): Promise<void>;
33
+ /** Gets the aria-controls attribute linking to the panel. */
34
+ getAriaControls(): Promise<string | null>;
35
+ /** Whether the tab is closable. */
36
+ isClosable(): Promise<boolean>;
37
+ /** Clicks the close button on the tab. Throws if not closable. */
38
+ close(): Promise<void>;
39
+ /** Focuses the tab button. */
40
+ focus(): Promise<void>;
41
+ /** Blurs the tab button. */
42
+ blur(): Promise<void>;
43
+ /** Whether the tab button is focused. */
44
+ isFocused(): Promise<boolean>;
45
+ }
46
+ /**
47
+ * Harness for interacting with a ComTabGroup in tests.
48
+ */
49
+ declare class ComTabGroupHarness extends ComponentHarness {
50
+ static hostSelector: string;
51
+ /**
52
+ * Gets a HarnessPredicate for matching tab groups.
53
+ * @param options Filter options.
54
+ */
55
+ static with(options?: ComTabGroupHarnessFilters): HarnessPredicate<ComTabGroupHarness>;
56
+ /** Gets all tab buttons, optionally filtered. */
57
+ getTabs(filters?: ComTabHarnessFilters): Promise<ComTabHarness[]>;
58
+ /** Gets the currently selected tab. Throws if none is selected. */
59
+ getSelectedTab(): Promise<ComTabHarness>;
60
+ /** Selects a tab matching the given filter. */
61
+ selectTab(filter: ComTabHarnessFilters): Promise<void>;
62
+ /** Gets all tab label texts. */
63
+ getTabLabels(): Promise<string[]>;
64
+ }
65
+
66
+ export { ComTabGroupHarness, ComTabHarness };
67
+ export type { ComTabGroupHarnessFilters, ComTabHarnessFilters };
@@ -0,0 +1,53 @@
1
+ import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing';
2
+
3
+ /** Harness filters for ComTimePickerHarness. */
4
+ interface ComTimePickerHarnessFilters extends BaseHarnessFilters {
5
+ /** Filter by whether the time picker is disabled. */
6
+ disabled?: boolean;
7
+ }
8
+ /**
9
+ * Harness for interacting with a ComTimePicker in tests.
10
+ */
11
+ declare class ComTimePickerHarness extends ComponentHarness {
12
+ static hostSelector: string;
13
+ private readonly hourInput;
14
+ private readonly minuteInput;
15
+ private readonly secondInput;
16
+ private readonly periodToggle;
17
+ /**
18
+ * Gets a HarnessPredicate for matching time pickers.
19
+ * @param options Filter options.
20
+ */
21
+ static with(options?: ComTimePickerHarnessFilters): HarnessPredicate<ComTimePickerHarness>;
22
+ /** Gets the current hours value from the hours spinbutton. */
23
+ getHours(): Promise<number>;
24
+ /** Gets the current minutes value from the minutes spinbutton. */
25
+ getMinutes(): Promise<number>;
26
+ /** Gets the current seconds value, or null if seconds field is not shown. */
27
+ getSeconds(): Promise<number | null>;
28
+ /** Gets the current period (AM/PM), or null if not in 12-hour format. */
29
+ getPeriod(): Promise<'AM' | 'PM' | null>;
30
+ /** Sets the hours value by clearing and typing into the hours input. */
31
+ setHours(value: number): Promise<void>;
32
+ /** Sets the minutes value by clearing and typing into the minutes input. */
33
+ setMinutes(value: number): Promise<void>;
34
+ /** Sets the seconds value. Throws if the seconds field is not shown. */
35
+ setSeconds(value: number): Promise<void>;
36
+ /** Toggles the AM/PM period. Throws if not in 12-hour format. */
37
+ togglePeriod(): Promise<void>;
38
+ /** Whether the time picker is disabled. */
39
+ isDisabled(): Promise<boolean>;
40
+ /** Whether the seconds field is visible. */
41
+ hasSeconds(): Promise<boolean>;
42
+ /** Whether the time picker is in 12-hour format (has a period toggle). */
43
+ has12HourFormat(): Promise<boolean>;
44
+ /** Focuses the hours input element. */
45
+ focus(): Promise<void>;
46
+ /** Blurs the hours input element. */
47
+ blur(): Promise<void>;
48
+ /** Whether the time picker host element is focused. */
49
+ isFocused(): Promise<boolean>;
50
+ }
51
+
52
+ export { ComTimePickerHarness };
53
+ export type { ComTimePickerHarnessFilters };
@@ -0,0 +1,93 @@
1
+ import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing';
2
+
3
+ /** Harness filters for ComToastHarness. */
4
+ interface ComToastHarnessFilters extends BaseHarnessFilters {
5
+ /** Filter by the toast's message text. */
6
+ message?: string | RegExp;
7
+ /** Filter by the toast's title text. */
8
+ title?: string | RegExp;
9
+ }
10
+ /** Harness filters for ComToastContainerHarness. */
11
+ type ComToastContainerHarnessFilters = BaseHarnessFilters;
12
+ /**
13
+ * Harness for interacting with an individual toast notification in tests.
14
+ *
15
+ * Because toasts are rendered inside a CDK overlay, use
16
+ * `TestbedHarnessEnvironment.documentRootLoader(fixture)` or
17
+ * `documentRootLocatorFactory()` to locate them.
18
+ */
19
+ declare class ComToastHarness extends ComponentHarness {
20
+ static hostSelector: string;
21
+ private readonly innerDiv;
22
+ private readonly titleEl;
23
+ private readonly messageEl;
24
+ private readonly closeButton;
25
+ private readonly actionButton;
26
+ /**
27
+ * Gets a HarnessPredicate for matching toasts.
28
+ * @param options Filter options.
29
+ */
30
+ static with(options?: ComToastHarnessFilters): HarnessPredicate<ComToastHarness>;
31
+ /** Gets the ARIA role of the toast (`"alert"` or `"status"`). */
32
+ getRole(): Promise<string | null>;
33
+ /** Gets the `aria-live` value of the toast (`"assertive"` or `"polite"`). */
34
+ getAriaLive(): Promise<string | null>;
35
+ /** Gets the `data-state` attribute (`"open"` or `"closed"`). */
36
+ getState(): Promise<string | null>;
37
+ /**
38
+ * Gets the toast's title text, or `null` if no title is present.
39
+ */
40
+ getTitleText(): Promise<string | null>;
41
+ /** Gets the toast's message text. */
42
+ getMessageText(): Promise<string>;
43
+ /** Whether the toast has an action button. */
44
+ hasAction(): Promise<boolean>;
45
+ /** Gets the action button's text, or `null` if no action exists. */
46
+ getActionText(): Promise<string | null>;
47
+ /**
48
+ * Clicks the action button.
49
+ * @throws If no action button is present.
50
+ */
51
+ clickAction(): Promise<void>;
52
+ /** Whether the toast has a close (dismiss) button. */
53
+ isDismissible(): Promise<boolean>;
54
+ /**
55
+ * Clicks the close button to dismiss the toast.
56
+ * @throws If no close button is present.
57
+ */
58
+ dismiss(): Promise<void>;
59
+ /** Whether the toast is disabled. */
60
+ isDisabled(): Promise<boolean>;
61
+ /** Whether the toast host is focused. */
62
+ isFocused(): Promise<boolean>;
63
+ /** Focuses the toast host element. */
64
+ focus(): Promise<void>;
65
+ /** Blurs the toast host element. */
66
+ blur(): Promise<void>;
67
+ }
68
+ /**
69
+ * Harness for interacting with the toast container in tests.
70
+ *
71
+ * The container is rendered in a CDK overlay. Use
72
+ * `TestbedHarnessEnvironment.documentRootLoader(fixture)` to locate it.
73
+ */
74
+ declare class ComToastContainerHarness extends ComponentHarness {
75
+ static hostSelector: string;
76
+ private readonly regionDiv;
77
+ /**
78
+ * Gets a HarnessPredicate for matching toast containers.
79
+ * @param options Filter options.
80
+ */
81
+ static with(options?: ComToastContainerHarnessFilters): HarnessPredicate<ComToastContainerHarness>;
82
+ /** Gets the container's `aria-label` attribute. */
83
+ getAriaLabel(): Promise<string | null>;
84
+ /** Gets all toast harnesses inside the container, optionally filtered. */
85
+ getToasts(filters?: ComToastHarnessFilters): Promise<ComToastHarness[]>;
86
+ /** Gets the number of toasts currently in the container. */
87
+ getToastCount(): Promise<number>;
88
+ /** Gets the message text of all toasts. */
89
+ getToastMessages(): Promise<string[]>;
90
+ }
91
+
92
+ export { ComToastContainerHarness, ComToastHarness };
93
+ export type { ComToastContainerHarnessFilters, ComToastHarnessFilters };
@@ -0,0 +1,57 @@
1
+ import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing';
2
+
3
+ /** Harness filters for ComTooltipHarness. */
4
+ interface ComTooltipHarnessFilters extends BaseHarnessFilters {
5
+ /** Filter by the trigger element's text content. */
6
+ text?: string | RegExp;
7
+ }
8
+ /**
9
+ * Harness for interacting with a `[comTooltip]` directive in tests.
10
+ *
11
+ * The tooltip panel is rendered in a CDK overlay, so this harness uses
12
+ * `documentRootLocatorFactory()` to locate the panel in the document root.
13
+ */
14
+ declare class ComTooltipHarness extends ComponentHarness {
15
+ static hostSelector: string;
16
+ private readonly documentRootLocator;
17
+ /**
18
+ * Gets a HarnessPredicate for matching tooltip triggers.
19
+ * @param options Filter options.
20
+ */
21
+ static with(options?: ComTooltipHarnessFilters): HarnessPredicate<ComTooltipHarness>;
22
+ /** Gets the trigger element's text content. */
23
+ getText(): Promise<string>;
24
+ /** Whether the tooltip is currently open/visible. */
25
+ isOpen(): Promise<boolean>;
26
+ /**
27
+ * Shows the tooltip by hovering over the trigger element.
28
+ * If the tooltip is already open, this is a no-op.
29
+ */
30
+ show(): Promise<void>;
31
+ /**
32
+ * Hides the tooltip by pressing Escape on the trigger element.
33
+ * If the tooltip is already closed, this is a no-op.
34
+ */
35
+ hide(): Promise<void>;
36
+ /**
37
+ * Gets the text content of the tooltip panel.
38
+ * Returns `null` if the tooltip is not open.
39
+ */
40
+ getTooltipText(): Promise<string | null>;
41
+ /**
42
+ * Gets the side the tooltip is positioned on (`data-side` attribute).
43
+ * Returns `null` if the tooltip is not open.
44
+ */
45
+ getTooltipSide(): Promise<string | null>;
46
+ /** Gets the `aria-describedby` value from the trigger element. */
47
+ getAriaDescribedBy(): Promise<string | null>;
48
+ /** Focuses the trigger element (also shows the tooltip via focusin). */
49
+ focus(): Promise<void>;
50
+ /** Blurs the trigger element (hides the tooltip via focusout). */
51
+ blur(): Promise<void>;
52
+ /** Whether the trigger element is currently focused. */
53
+ isFocused(): Promise<boolean>;
54
+ }
55
+
56
+ export { ComTooltipHarness };
57
+ export type { ComTooltipHarnessFilters };