@gtkx/testing 0.21.0 → 1.0.0-rc.1
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/README.md +137 -34
- package/dist/act.d.ts +19 -0
- package/dist/act.d.ts.map +1 -0
- package/dist/act.js +48 -0
- package/dist/act.js.map +1 -0
- package/dist/bound-queries.d.ts +32 -0
- package/dist/bound-queries.d.ts.map +1 -0
- package/dist/bound-queries.js +2 -0
- package/dist/bound-queries.js.map +1 -0
- package/dist/build-queries.d.ts +16 -0
- package/dist/build-queries.d.ts.map +1 -0
- package/dist/build-queries.js +103 -0
- package/dist/build-queries.js.map +1 -0
- package/dist/cleanup-registry.d.ts +4 -0
- package/dist/cleanup-registry.d.ts.map +1 -0
- package/dist/cleanup-registry.js +11 -0
- package/dist/cleanup-registry.js.map +1 -0
- package/dist/config.d.ts +18 -51
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +9 -40
- package/dist/config.js.map +1 -1
- package/dist/editable.d.ts +7 -0
- package/dist/editable.d.ts.map +1 -0
- package/dist/editable.js +24 -0
- package/dist/editable.js.map +1 -0
- package/dist/errors.d.ts +29 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +119 -0
- package/dist/errors.js.map +1 -0
- package/dist/fire-event.d.ts +7 -25
- package/dist/fire-event.d.ts.map +1 -1
- package/dist/fire-event.js +9 -29
- package/dist/fire-event.js.map +1 -1
- package/dist/frame-sync.d.ts +3 -0
- package/dist/frame-sync.d.ts.map +1 -0
- package/dist/frame-sync.js +30 -0
- package/dist/frame-sync.js.map +1 -0
- package/dist/index.d.ts +16 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/matchers.d.ts +55 -0
- package/dist/matchers.d.ts.map +1 -0
- package/dist/matchers.js +103 -0
- package/dist/matchers.js.map +1 -0
- package/dist/pretty-widget.d.ts +21 -25
- package/dist/pretty-widget.d.ts.map +1 -1
- package/dist/pretty-widget.js +69 -115
- package/dist/pretty-widget.js.map +1 -1
- package/dist/queries.d.ts +130 -177
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +212 -325
- package/dist/queries.js.map +1 -1
- package/dist/register-test-hooks.d.ts +2 -0
- package/dist/register-test-hooks.d.ts.map +1 -0
- package/dist/register-test-hooks.js +15 -0
- package/dist/register-test-hooks.js.map +1 -0
- package/dist/render-hook.d.ts +14 -35
- package/dist/render-hook.d.ts.map +1 -1
- package/dist/render-hook.js +8 -45
- package/dist/render-hook.js.map +1 -1
- package/dist/render.d.ts +11 -41
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +129 -118
- package/dist/render.js.map +1 -1
- package/dist/role-helpers.d.ts +16 -51
- package/dist/role-helpers.d.ts.map +1 -1
- package/dist/role-helpers.js +39 -58
- package/dist/role-helpers.js.map +1 -1
- package/dist/screen.d.ts +6 -63
- package/dist/screen.d.ts.map +1 -1
- package/dist/screen.js +21 -109
- package/dist/screen.js.map +1 -1
- package/dist/screenshot.d.ts +20 -23
- package/dist/screenshot.d.ts.map +1 -1
- package/dist/screenshot.js +89 -48
- package/dist/screenshot.js.map +1 -1
- package/dist/suggestions.d.ts +22 -0
- package/dist/suggestions.d.ts.map +1 -0
- package/dist/suggestions.js +56 -0
- package/dist/suggestions.js.map +1 -0
- package/dist/traversal.d.ts +10 -8
- package/dist/traversal.d.ts.map +1 -1
- package/dist/traversal.js +28 -13
- package/dist/traversal.js.map +1 -1
- package/dist/types.d.ts +103 -172
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/user-event/adjustment.d.ts +8 -0
- package/dist/user-event/adjustment.d.ts.map +1 -0
- package/dist/user-event/adjustment.js +33 -0
- package/dist/user-event/adjustment.js.map +1 -0
- package/dist/user-event/click.d.ts +7 -0
- package/dist/user-event/click.d.ts.map +1 -0
- package/dist/user-event/click.js +65 -0
- package/dist/user-event/click.js.map +1 -0
- package/dist/user-event/controller.d.ts +7 -0
- package/dist/user-event/controller.d.ts.map +1 -0
- package/dist/user-event/controller.js +28 -0
- package/dist/user-event/controller.js.map +1 -0
- package/dist/user-event/dispatch.d.ts +7 -0
- package/dist/user-event/dispatch.d.ts.map +1 -0
- package/dist/user-event/dispatch.js +10 -0
- package/dist/user-event/dispatch.js.map +1 -0
- package/dist/user-event/event-wrapper.d.ts +3 -0
- package/dist/user-event/event-wrapper.d.ts.map +1 -0
- package/dist/user-event/event-wrapper.js +48 -0
- package/dist/user-event/event-wrapper.js.map +1 -0
- package/dist/user-event/gesture.d.ts +31 -0
- package/dist/user-event/gesture.d.ts.map +1 -0
- package/dist/user-event/gesture.js +105 -0
- package/dist/user-event/gesture.js.map +1 -0
- package/dist/user-event/index.d.ts +44 -0
- package/dist/user-event/index.d.ts.map +1 -0
- package/dist/user-event/index.js +38 -0
- package/dist/user-event/index.js.map +1 -0
- package/dist/user-event/keyboard.d.ts +9 -0
- package/dist/user-event/keyboard.d.ts.map +1 -0
- package/dist/user-event/keyboard.js +173 -0
- package/dist/user-event/keyboard.js.map +1 -0
- package/dist/user-event/pointer.d.ts +6 -0
- package/dist/user-event/pointer.d.ts.map +1 -0
- package/dist/user-event/pointer.js +27 -0
- package/dist/user-event/pointer.js.map +1 -0
- package/dist/user-event/selection.d.ts +4 -0
- package/dist/user-event/selection.d.ts.map +1 -0
- package/dist/user-event/selection.js +106 -0
- package/dist/user-event/selection.js.map +1 -0
- package/dist/user-event/state.d.ts +6 -0
- package/dist/user-event/state.d.ts.map +1 -0
- package/dist/user-event/state.js +2 -0
- package/dist/user-event/state.js.map +1 -0
- package/dist/user-event/text.d.ts +17 -0
- package/dist/user-event/text.d.ts.map +1 -0
- package/dist/user-event/text.js +107 -0
- package/dist/user-event/text.js.map +1 -0
- package/dist/wait-for.d.ts +13 -33
- package/dist/wait-for.d.ts.map +1 -1
- package/dist/wait-for.js +62 -73
- package/dist/wait-for.js.map +1 -1
- package/dist/widget-accessible-properties.d.ts +33 -0
- package/dist/widget-accessible-properties.d.ts.map +1 -0
- package/dist/widget-accessible-properties.js +215 -0
- package/dist/widget-accessible-properties.js.map +1 -0
- package/dist/within.d.ts +9 -26
- package/dist/within.d.ts.map +1 -1
- package/dist/within.js +15 -25
- package/dist/within.js.map +1 -1
- package/package.json +21 -12
- package/src/act.ts +68 -0
- package/src/bound-queries.ts +36 -0
- package/src/build-queries.ts +185 -0
- package/src/cleanup-registry.ts +14 -0
- package/src/config.ts +28 -59
- package/src/editable.ts +30 -0
- package/src/errors.ts +130 -0
- package/src/fire-event.ts +11 -38
- package/src/frame-sync.ts +34 -0
- package/src/index.ts +56 -14
- package/src/matchers.ts +200 -0
- package/src/pretty-widget.ts +99 -138
- package/src/queries.ts +320 -420
- package/src/register-test-hooks.ts +16 -0
- package/src/render-hook.tsx +31 -44
- package/src/render.tsx +161 -149
- package/src/role-helpers.ts +47 -67
- package/src/screen.ts +21 -114
- package/src/screenshot.ts +104 -55
- package/src/suggestions.ts +87 -0
- package/src/traversal.ts +32 -18
- package/src/types.ts +115 -176
- package/src/user-event/adjustment.ts +49 -0
- package/src/user-event/click.ts +70 -0
- package/src/user-event/controller.ts +44 -0
- package/src/user-event/dispatch.ts +23 -0
- package/src/user-event/event-wrapper.ts +54 -0
- package/src/user-event/gesture.ts +154 -0
- package/src/user-event/index.ts +74 -0
- package/src/user-event/keyboard.ts +204 -0
- package/src/user-event/pointer.ts +34 -0
- package/src/user-event/selection.ts +122 -0
- package/src/user-event/state.ts +6 -0
- package/src/user-event/text.ts +137 -0
- package/src/wait-for.ts +79 -81
- package/src/widget-accessible-properties.ts +244 -0
- package/src/within.ts +26 -27
- package/dist/bind-queries.d.ts +0 -14
- package/dist/bind-queries.d.ts.map +0 -1
- package/dist/bind-queries.js +0 -29
- package/dist/bind-queries.js.map +0 -1
- package/dist/error-builder.d.ts +0 -28
- package/dist/error-builder.d.ts.map +0 -1
- package/dist/error-builder.js +0 -81
- package/dist/error-builder.js.map +0 -1
- package/dist/timing.d.ts +0 -18
- package/dist/timing.d.ts.map +0 -1
- package/dist/timing.js +0 -18
- package/dist/timing.js.map +0 -1
- package/dist/user-event.d.ts +0 -138
- package/dist/user-event.d.ts.map +0 -1
- package/dist/user-event.js +0 -411
- package/dist/user-event.js.map +0 -1
- package/dist/widget-text.d.ts +0 -69
- package/dist/widget-text.d.ts.map +0 -1
- package/dist/widget-text.js +0 -177
- package/dist/widget-text.js.map +0 -1
- package/dist/widget.d.ts +0 -3
- package/dist/widget.d.ts.map +0 -1
- package/dist/widget.js +0 -13
- package/dist/widget.js.map +0 -1
- package/src/bind-queries.ts +0 -52
- package/src/error-builder.ts +0 -102
- package/src/timing.ts +0 -17
- package/src/user-event.ts +0 -492
- package/src/widget-text.ts +0 -202
- package/src/widget.ts +0 -15
package/dist/queries.d.ts
CHANGED
|
@@ -1,182 +1,135 @@
|
|
|
1
|
-
import * as Gtk from "@gtkx/
|
|
1
|
+
import * as Gtk from "@gtkx/gi/gtk";
|
|
2
2
|
import { type Container } from "./traversal.js";
|
|
3
|
-
import type { ByRoleOptions,
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* @
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import type { ByRoleOptions, Matcher, MatcherOptions, NormalizerFn, NormalizerOptions } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Builds the default text normalizer, which optionally trims surrounding whitespace and collapses runs of whitespace into single spaces.
|
|
6
|
+
* @param options Toggles for trimming and whitespace collapsing.
|
|
7
|
+
* @returns A function that normalizes a string for comparison against a matcher.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getDefaultNormalizer: ({ trim, collapseWhitespace, }?: NormalizerOptions) => NormalizerFn;
|
|
10
|
+
type NamedFamily<Suffix extends string, Args extends unknown[]> = {
|
|
11
|
+
[P in `queryBy${Suffix}`]: (container: Container, ...args: Args) => Gtk.Widget | null;
|
|
12
|
+
} & {
|
|
13
|
+
[P in `queryAllBy${Suffix}`]: (container: Container, ...args: Args) => Gtk.Widget[];
|
|
14
|
+
} & {
|
|
15
|
+
[P in `getBy${Suffix}`]: (container: Container, ...args: Args) => Gtk.Widget;
|
|
16
|
+
} & {
|
|
17
|
+
[P in `getAllBy${Suffix}`]: (container: Container, ...args: Args) => Gtk.Widget[];
|
|
18
|
+
} & {
|
|
19
|
+
[P in `findBy${Suffix}`]: (container: Container, ...args: Args) => Promise<Gtk.Widget>;
|
|
20
|
+
} & {
|
|
21
|
+
[P in `findAllBy${Suffix}`]: (container: Container, ...args: Args) => Promise<Gtk.Widget[]>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Finds every widget under the container whose accessible role matches `role` and that satisfies the given options.
|
|
25
|
+
* Widgets excluded from the accessibility tree are skipped unless `options.hidden` is set.
|
|
26
|
+
* @param container Widget subtree to search.
|
|
27
|
+
* @param role Accessible role to match.
|
|
28
|
+
* @param options Additional accessible name, state, and value constraints.
|
|
29
|
+
* @returns Every matching widget, or an empty array when none match.
|
|
11
30
|
*/
|
|
12
31
|
export declare const queryAllByRole: (container: Container, role: Gtk.AccessibleRole, options?: ByRoleOptions) => Gtk.Widget[];
|
|
13
32
|
/**
|
|
14
|
-
* Finds a
|
|
15
|
-
*
|
|
16
|
-
* @param
|
|
17
|
-
* @param
|
|
18
|
-
* @
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*
|
|
31
|
-
* @param
|
|
32
|
-
* @param
|
|
33
|
-
* @
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*
|
|
39
|
-
* @param container
|
|
40
|
-
* @param text
|
|
41
|
-
* @param options
|
|
42
|
-
* @returns
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* @param
|
|
50
|
-
* @
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export declare const
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
*/
|
|
64
|
-
export declare const
|
|
65
|
-
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
*/
|
|
108
|
-
export declare const
|
|
109
|
-
/**
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
* @param text - Label text to match (string, RegExp, or custom matcher)
|
|
117
|
-
* @param options - Query options including normalization and timeout
|
|
118
|
-
* @returns Promise resolving to the labelled widget
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* ```tsx
|
|
122
|
-
* const input = await findByLabelText(container, "Username");
|
|
123
|
-
* ```
|
|
124
|
-
*/
|
|
125
|
-
export declare const findByLabelText: (container: Container, text: TextMatch, options?: TextMatchOptions) => Promise<Gtk.Widget>;
|
|
126
|
-
/**
|
|
127
|
-
* Finds all elements matching label or text content.
|
|
128
|
-
*
|
|
129
|
-
* @param container - The container to search within
|
|
130
|
-
* @param text - Text to match (string, RegExp, or custom matcher)
|
|
131
|
-
* @param options - Query options including normalization and timeout
|
|
132
|
-
* @returns Promise resolving to array of matching widgets
|
|
133
|
-
*/
|
|
134
|
-
export declare const findAllByLabelText: (container: Container, text: TextMatch, options?: TextMatchOptions) => Promise<Gtk.Widget[]>;
|
|
135
|
-
/**
|
|
136
|
-
* Finds a single element by visible text content.
|
|
137
|
-
*
|
|
138
|
-
* Similar to {@link findByLabelText} but focuses on directly visible text.
|
|
139
|
-
*
|
|
140
|
-
* @param container - The container to search within
|
|
141
|
-
* @param text - Text to match (string, RegExp, or custom matcher)
|
|
142
|
-
* @param options - Query options including normalization and timeout
|
|
143
|
-
* @returns Promise resolving to the matching widget
|
|
144
|
-
*/
|
|
145
|
-
export declare const findByText: (container: Container, text: TextMatch, options?: TextMatchOptions) => Promise<Gtk.Widget>;
|
|
146
|
-
/**
|
|
147
|
-
* Finds all elements matching visible text content.
|
|
148
|
-
*
|
|
149
|
-
* @param container - The container to search within
|
|
150
|
-
* @param text - Text to match (string, RegExp, or custom matcher)
|
|
151
|
-
* @param options - Query options including normalization and timeout
|
|
152
|
-
* @returns Promise resolving to array of matching widgets
|
|
153
|
-
*/
|
|
154
|
-
export declare const findAllByText: (container: Container, text: TextMatch, options?: TextMatchOptions) => Promise<Gtk.Widget[]>;
|
|
155
|
-
/**
|
|
156
|
-
* Finds a single element by widget name.
|
|
157
|
-
*
|
|
158
|
-
* Uses the widget's `name` property (gtk_widget_get_name).
|
|
159
|
-
* Set via the `name` prop on GTKX components.
|
|
160
|
-
*
|
|
161
|
-
* @param container - The container to search within
|
|
162
|
-
* @param name - Widget name to match (string, RegExp, or custom matcher)
|
|
163
|
-
* @param options - Query options including normalization and timeout
|
|
164
|
-
* @returns Promise resolving to the matching widget
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* ```tsx
|
|
168
|
-
* // In component: <GtkButton name="submit-btn" />
|
|
169
|
-
* const button = await findByName(container, "submit-btn");
|
|
170
|
-
* ```
|
|
171
|
-
*/
|
|
172
|
-
export declare const findByName: (container: Container, name: TextMatch, options?: TextMatchOptions) => Promise<Gtk.Widget>;
|
|
173
|
-
/**
|
|
174
|
-
* Finds all elements matching a widget name pattern.
|
|
175
|
-
*
|
|
176
|
-
* @param container - The container to search within
|
|
177
|
-
* @param name - Widget name to match (string, RegExp, or custom matcher)
|
|
178
|
-
* @param options - Query options including normalization and timeout
|
|
179
|
-
* @returns Promise resolving to array of matching widgets
|
|
180
|
-
*/
|
|
181
|
-
export declare const findAllByName: (container: Container, name: TextMatch, options?: TextMatchOptions) => Promise<Gtk.Widget[]>;
|
|
33
|
+
* Finds every widget associated with a label whose text matches: a Gtk.Label mnemonic target, the widget's own accessible label, or its labelled-by relation.
|
|
34
|
+
* @param container Widget subtree to search.
|
|
35
|
+
* @param text Matcher for the label text.
|
|
36
|
+
* @param options Text matching options.
|
|
37
|
+
* @returns Every matching widget, or an empty array when none match.
|
|
38
|
+
*/
|
|
39
|
+
export declare const queryAllByLabelText: (container: Container, text: Matcher, options?: MatcherOptions) => Gtk.Widget[];
|
|
40
|
+
/**
|
|
41
|
+
* Finds every widget whose rendered text content matches.
|
|
42
|
+
* @param container Widget subtree to search.
|
|
43
|
+
* @param text Matcher for the widget text.
|
|
44
|
+
* @param options Text matching options.
|
|
45
|
+
* @returns Every matching widget, or an empty array when none match.
|
|
46
|
+
*/
|
|
47
|
+
export declare const queryAllByText: (container: Container, text: Matcher, options?: MatcherOptions) => Gtk.Widget[];
|
|
48
|
+
/**
|
|
49
|
+
* Finds every widget whose widget name matches.
|
|
50
|
+
* @param container Widget subtree to search.
|
|
51
|
+
* @param name Matcher for the widget name.
|
|
52
|
+
* @param options Text matching options.
|
|
53
|
+
* @returns Every matching widget, or an empty array when none match.
|
|
54
|
+
*/
|
|
55
|
+
export declare const queryAllByName: (container: Container, name: Matcher, options?: MatcherOptions) => Gtk.Widget[];
|
|
56
|
+
/**
|
|
57
|
+
* Finds every widget whose placeholder text matches.
|
|
58
|
+
* @param container Widget subtree to search.
|
|
59
|
+
* @param text Matcher for the placeholder text.
|
|
60
|
+
* @param options Text matching options.
|
|
61
|
+
* @returns Every matching widget, or an empty array when none match.
|
|
62
|
+
*/
|
|
63
|
+
export declare const queryAllByPlaceholderText: (container: Container, text: Matcher, options?: MatcherOptions) => Gtk.Widget[];
|
|
64
|
+
/**
|
|
65
|
+
* Finds every widget whose current display value matches.
|
|
66
|
+
* @param container Widget subtree to search.
|
|
67
|
+
* @param value Matcher for the display value.
|
|
68
|
+
* @param options Text matching options.
|
|
69
|
+
* @returns Every matching widget, or an empty array when none match.
|
|
70
|
+
*/
|
|
71
|
+
export declare const queryAllByDisplayValue: (container: Container, value: Matcher, options?: MatcherOptions) => Gtk.Widget[];
|
|
72
|
+
export type BuiltinQueries = NamedFamily<"Role", [role: Gtk.AccessibleRole, options?: ByRoleOptions]> & NamedFamily<"LabelText", [text: Matcher, options?: MatcherOptions]> & NamedFamily<"Text", [text: Matcher, options?: MatcherOptions]> & NamedFamily<"Name", [name: Matcher, options?: MatcherOptions]> & NamedFamily<"PlaceholderText", [text: Matcher, options?: MatcherOptions]> & NamedFamily<"DisplayValue", [value: Matcher, options?: MatcherOptions]>;
|
|
73
|
+
export declare const builtinQueries: BuiltinQueries;
|
|
74
|
+
/** Returns the single widget with a matching accessible role and options, or null when none match. Throws when more than one matches. */
|
|
75
|
+
export declare const queryByRole: BuiltinQueries["queryByRole"];
|
|
76
|
+
/** Returns every widget with a matching accessible role and options. Throws when none match. */
|
|
77
|
+
export declare const getAllByRole: BuiltinQueries["getAllByRole"];
|
|
78
|
+
/** Returns the single widget with a matching accessible role and options. Throws when none or more than one matches. */
|
|
79
|
+
export declare const getByRole: BuiltinQueries["getByRole"];
|
|
80
|
+
/** Waits for and returns every widget with a matching accessible role and options, retrying until at least one appears or the timeout elapses. */
|
|
81
|
+
export declare const findAllByRole: BuiltinQueries["findAllByRole"];
|
|
82
|
+
/** Waits for and returns the single widget with a matching accessible role and options, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
83
|
+
export declare const findByRole: BuiltinQueries["findByRole"];
|
|
84
|
+
/** Returns the single widget with matching associated label text, or null when none match. Throws when more than one matches. */
|
|
85
|
+
export declare const queryByLabelText: BuiltinQueries["queryByLabelText"];
|
|
86
|
+
/** Returns every widget with matching associated label text. Throws when none match. */
|
|
87
|
+
export declare const getAllByLabelText: BuiltinQueries["getAllByLabelText"];
|
|
88
|
+
/** Returns the single widget with matching associated label text. Throws when none or more than one matches. */
|
|
89
|
+
export declare const getByLabelText: BuiltinQueries["getByLabelText"];
|
|
90
|
+
/** Waits for and returns every widget with matching associated label text, retrying until at least one appears or the timeout elapses. */
|
|
91
|
+
export declare const findAllByLabelText: BuiltinQueries["findAllByLabelText"];
|
|
92
|
+
/** Waits for and returns the single widget with matching associated label text, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
93
|
+
export declare const findByLabelText: BuiltinQueries["findByLabelText"];
|
|
94
|
+
/** Returns the single widget with matching rendered text content, or null when none match. Throws when more than one matches. */
|
|
95
|
+
export declare const queryByText: BuiltinQueries["queryByText"];
|
|
96
|
+
/** Returns every widget with matching rendered text content. Throws when none match. */
|
|
97
|
+
export declare const getAllByText: BuiltinQueries["getAllByText"];
|
|
98
|
+
/** Returns the single widget with matching rendered text content. Throws when none or more than one matches. */
|
|
99
|
+
export declare const getByText: BuiltinQueries["getByText"];
|
|
100
|
+
/** Waits for and returns every widget with matching rendered text content, retrying until at least one appears or the timeout elapses. */
|
|
101
|
+
export declare const findAllByText: BuiltinQueries["findAllByText"];
|
|
102
|
+
/** Waits for and returns the single widget with matching rendered text content, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
103
|
+
export declare const findByText: BuiltinQueries["findByText"];
|
|
104
|
+
/** Returns the single widget with a matching widget name, or null when none match. Throws when more than one matches. */
|
|
105
|
+
export declare const queryByName: BuiltinQueries["queryByName"];
|
|
106
|
+
/** Returns every widget with a matching widget name. Throws when none match. */
|
|
107
|
+
export declare const getAllByName: BuiltinQueries["getAllByName"];
|
|
108
|
+
/** Returns the single widget with a matching widget name. Throws when none or more than one matches. */
|
|
109
|
+
export declare const getByName: BuiltinQueries["getByName"];
|
|
110
|
+
/** Waits for and returns every widget with a matching widget name, retrying until at least one appears or the timeout elapses. */
|
|
111
|
+
export declare const findAllByName: BuiltinQueries["findAllByName"];
|
|
112
|
+
/** Waits for and returns the single widget with a matching widget name, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
113
|
+
export declare const findByName: BuiltinQueries["findByName"];
|
|
114
|
+
/** Returns the single widget with matching placeholder text, or null when none match. Throws when more than one matches. */
|
|
115
|
+
export declare const queryByPlaceholderText: BuiltinQueries["queryByPlaceholderText"];
|
|
116
|
+
/** Returns every widget with matching placeholder text. Throws when none match. */
|
|
117
|
+
export declare const getAllByPlaceholderText: BuiltinQueries["getAllByPlaceholderText"];
|
|
118
|
+
/** Returns the single widget with matching placeholder text. Throws when none or more than one matches. */
|
|
119
|
+
export declare const getByPlaceholderText: BuiltinQueries["getByPlaceholderText"];
|
|
120
|
+
/** Waits for and returns every widget with matching placeholder text, retrying until at least one appears or the timeout elapses. */
|
|
121
|
+
export declare const findAllByPlaceholderText: BuiltinQueries["findAllByPlaceholderText"];
|
|
122
|
+
/** Waits for and returns the single widget with matching placeholder text, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
123
|
+
export declare const findByPlaceholderText: BuiltinQueries["findByPlaceholderText"];
|
|
124
|
+
/** Returns the single widget with a matching display value, or null when none match. Throws when more than one matches. */
|
|
125
|
+
export declare const queryByDisplayValue: BuiltinQueries["queryByDisplayValue"];
|
|
126
|
+
/** Returns every widget with a matching display value. Throws when none match. */
|
|
127
|
+
export declare const getAllByDisplayValue: BuiltinQueries["getAllByDisplayValue"];
|
|
128
|
+
/** Returns the single widget with a matching display value. Throws when none or more than one matches. */
|
|
129
|
+
export declare const getByDisplayValue: BuiltinQueries["getByDisplayValue"];
|
|
130
|
+
/** Waits for and returns every widget with a matching display value, retrying until at least one appears or the timeout elapses. */
|
|
131
|
+
export declare const findAllByDisplayValue: BuiltinQueries["findAllByDisplayValue"];
|
|
132
|
+
/** Waits for and returns the single widget with a matching display value, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
133
|
+
export declare const findByDisplayValue: BuiltinQueries["findByDisplayValue"];
|
|
134
|
+
export {};
|
|
182
135
|
//# sourceMappingURL=queries.d.ts.map
|
package/dist/queries.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../src/queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../src/queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AAGpC,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,gBAAgB,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAe,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAoBvH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,mCAG9B,iBAAiB,KAAQ,YAa3B,CAAC;AAuFF,KAAK,WAAW,CAAC,MAAM,SAAS,MAAM,EAAE,IAAI,SAAS,OAAO,EAAE,IAAI;KAC7D,CAAC,IAAI,UAAU,MAAM,EAAE,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,GAAG,CAAC,MAAM,GAAG,IAAI;CACxF,GAAG;KACC,CAAC,IAAI,aAAa,MAAM,EAAE,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,GAAG,CAAC,MAAM,EAAE;CACtF,GAAG;KACC,CAAC,IAAI,QAAQ,MAAM,EAAE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