@vonage/vivid-test-utils 5.2.0
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 +102 -0
- package/dist/actions.d.ts +31 -0
- package/dist/base.d.ts +38 -0
- package/dist/components.generated-DY7hz_DE.js +3311 -0
- package/dist/components.generated-DiskE4p5.cjs +1 -0
- package/dist/components.generated.d.ts +2581 -0
- package/dist/cypress.cjs +3 -0
- package/dist/cypress.d.ts +7 -0
- package/dist/cypress.js +133 -0
- package/dist/dom.cjs +3 -0
- package/dist/dom.d.ts +4 -0
- package/dist/dom.js +120 -0
- package/dist/drivers/cypress.d.ts +7 -0
- package/dist/drivers/dom.d.ts +5 -0
- package/dist/drivers/driver.d.ts +54 -0
- package/dist/drivers/playwright.d.ts +3 -0
- package/dist/jsdom-polyfill.cjs +1 -0
- package/dist/jsdom-polyfill.d.ts +1 -0
- package/dist/jsdom-polyfill.js +37 -0
- package/dist/playwright.cjs +3 -0
- package/dist/playwright.d.ts +4 -0
- package/dist/playwright.js +87 -0
- package/dist/queries.d.ts +20 -0
- package/dist/refs.d.ts +8 -0
- package/dist/selectors.d.ts +7 -0
- package/dist/utils/cssSelectors.d.ts +2 -0
- package/dist/utils/runSequence.d.ts +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,2581 @@
|
|
|
1
|
+
import type { DriverT } from './drivers/driver';
|
|
2
|
+
import { BaseComponent, BaseWrapper, ComponentCollectionExpectations, type ComponentCollectionLocator, type Context } from './base';
|
|
3
|
+
import type { VwcAccordionElement, VwcAccordionItemElement, VwcActionGroupElement, VwcAlertElement, VwcAudioPlayerElement, VwcAvatarElement, VwcBadgeElement, VwcBannerElement, VwcBreadcrumbElement, VwcBreadcrumbItemElement, VwcButtonElement, VwcCalendarElement, VwcCalendarEventElement, VwcCardElement, VwcCheckboxElement, VwcComboboxElement, VwcDataGridElement, VwcDataGridCellElement, VwcDataGridRowElement, VwcDatePickerElement, VwcDateRangePickerElement, VwcDateTimePickerElement, VwcDialPadElement, VwcDialogElement, VwcDividerElement, VwcEmptyStateElement, VwcFabElement, VwcFilePickerElement, VwcHeaderElement, VwcIconElement, VwcLayoutElement, VwcMenuElement, VwcMenuItemElement, VwcNavElement, VwcNavDisclosureElement, VwcNavItemElement, VwcNoteElement, VwcNumberFieldElement, VwcOptionElement, VwcPaginationElement, VwcProgressElement, VwcProgressRingElement, VwcRadioElement, VwcRadioGroupElement, VwcRangeSliderElement, VwcRichTextEditorElement, VwcSearchableSelectElement, VwcSelectElement, VwcSelectableBoxElement, VwcSideDrawerElement, VwcSimpleColorPickerElement, VwcSliderElement, VwcSplitButtonElement, VwcSwitchElement, VwcTabElement, VwcTabPanelElement, VwcTabsElement, VwcTagElement, VwcTagGroupElement, VwcTextAreaElement, VwcTextFieldElement, VwcTimePickerElement, VwcToggletipElement, VwcTooltipElement, VwcTreeItemElement, VwcTreeViewElement, VwcVideoPlayerElement } from "@vonage/vivid";
|
|
4
|
+
type IconId = string;
|
|
5
|
+
type AccordionProps = {
|
|
6
|
+
expandMode: 'single' | 'multi';
|
|
7
|
+
};
|
|
8
|
+
export declare class AccordionWrapper<D extends DriverT> extends BaseWrapper<D, VwcAccordionElement> {
|
|
9
|
+
type: "accordion";
|
|
10
|
+
componentInfo: {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
hover: () => D["actionReturn"];
|
|
14
|
+
focus: () => D["actionReturn"];
|
|
15
|
+
blur: () => D["actionReturn"];
|
|
16
|
+
}
|
|
17
|
+
export declare class Accordion<D extends DriverT> extends BaseComponent<D, AccordionWrapper<D>> {
|
|
18
|
+
componentInfo: {
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
wrap(locator: D['locator']): AccordionWrapper<D>;
|
|
22
|
+
byTestId: (id: string) => AccordionWrapper<D>;
|
|
23
|
+
}
|
|
24
|
+
export declare class AccordionExpectations<D extends DriverT> {
|
|
25
|
+
private readonly ctx;
|
|
26
|
+
private readonly wrapper;
|
|
27
|
+
constructor(ctx: Context<D>, wrapper: AccordionWrapper<D>);
|
|
28
|
+
toHaveProp: <T extends "expandMode">(propName: T, value: AccordionProps[T]) => D["expectReturn"];
|
|
29
|
+
}
|
|
30
|
+
type AccordionItemProps = {
|
|
31
|
+
appearance: 'ghost' | 'filled' | 'ghost-light';
|
|
32
|
+
expanded: boolean;
|
|
33
|
+
heading: string;
|
|
34
|
+
headingLevel: 1 | 2 | 3 | 4 | 5 | 6;
|
|
35
|
+
icon: IconId;
|
|
36
|
+
iconTrailing: boolean;
|
|
37
|
+
id: string;
|
|
38
|
+
meta: string;
|
|
39
|
+
noIndicator: boolean;
|
|
40
|
+
size: 'condensed' | 'normal';
|
|
41
|
+
};
|
|
42
|
+
export declare class AccordionItemWrapper<D extends DriverT> extends BaseWrapper<D, VwcAccordionItemElement> {
|
|
43
|
+
type: "accordionItem";
|
|
44
|
+
componentInfo: {
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
hover: () => D["actionReturn"];
|
|
48
|
+
focus: () => D["actionReturn"];
|
|
49
|
+
blur: () => D["actionReturn"];
|
|
50
|
+
expand: () => D["actionReturn"];
|
|
51
|
+
collapse: () => D["actionReturn"];
|
|
52
|
+
}
|
|
53
|
+
export declare class AccordionItem<D extends DriverT> extends BaseComponent<D, AccordionItemWrapper<D>> {
|
|
54
|
+
componentInfo: {
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
wrap(locator: D['locator']): AccordionItemWrapper<D>;
|
|
58
|
+
byTestId: (id: string) => AccordionItemWrapper<D>;
|
|
59
|
+
byHeading: (heading: string) => AccordionItemWrapper<D>;
|
|
60
|
+
}
|
|
61
|
+
export declare class AccordionItemExpectations<D extends DriverT> {
|
|
62
|
+
private readonly ctx;
|
|
63
|
+
private readonly wrapper;
|
|
64
|
+
constructor(ctx: Context<D>, wrapper: AccordionItemWrapper<D>);
|
|
65
|
+
toHaveProp: <T extends keyof AccordionItemProps>(propName: T, value: AccordionItemProps[T]) => D["expectReturn"];
|
|
66
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
67
|
+
toBeExpanded: () => D["expectReturn"];
|
|
68
|
+
toBeCollapsed: () => D["expectReturn"];
|
|
69
|
+
}
|
|
70
|
+
type ActionGroupProps = {
|
|
71
|
+
appearance: 'fieldset' | 'ghost';
|
|
72
|
+
shape: 'rounded' | 'pill';
|
|
73
|
+
tight: boolean;
|
|
74
|
+
};
|
|
75
|
+
export declare class ActionGroupWrapper<D extends DriverT> extends BaseWrapper<D, VwcActionGroupElement> {
|
|
76
|
+
type: "actionGroup";
|
|
77
|
+
componentInfo: {
|
|
78
|
+
name: string;
|
|
79
|
+
};
|
|
80
|
+
hover: () => D["actionReturn"];
|
|
81
|
+
focus: () => D["actionReturn"];
|
|
82
|
+
blur: () => D["actionReturn"];
|
|
83
|
+
}
|
|
84
|
+
export declare class ActionGroup<D extends DriverT> extends BaseComponent<D, ActionGroupWrapper<D>> {
|
|
85
|
+
componentInfo: {
|
|
86
|
+
name: string;
|
|
87
|
+
};
|
|
88
|
+
wrap(locator: D['locator']): ActionGroupWrapper<D>;
|
|
89
|
+
byTestId: (id: string) => ActionGroupWrapper<D>;
|
|
90
|
+
}
|
|
91
|
+
export declare class ActionGroupExpectations<D extends DriverT> {
|
|
92
|
+
private readonly ctx;
|
|
93
|
+
private readonly wrapper;
|
|
94
|
+
constructor(ctx: Context<D>, wrapper: ActionGroupWrapper<D>);
|
|
95
|
+
toHaveProp: <T extends keyof ActionGroupProps>(propName: T, value: ActionGroupProps[T]) => D["expectReturn"];
|
|
96
|
+
}
|
|
97
|
+
type AlertProps = {
|
|
98
|
+
connotation: 'accent' | 'information' | 'success' | 'warning' | 'announcement' | 'alert';
|
|
99
|
+
dismissButtonAriaLabel: string;
|
|
100
|
+
headline: string;
|
|
101
|
+
icon: IconId;
|
|
102
|
+
open: boolean;
|
|
103
|
+
placement: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
|
|
104
|
+
removable: boolean;
|
|
105
|
+
strategy: 'fixed' | 'static';
|
|
106
|
+
text: string;
|
|
107
|
+
timeoutms: number;
|
|
108
|
+
};
|
|
109
|
+
export declare class AlertWrapper<D extends DriverT> extends BaseWrapper<D, VwcAlertElement> {
|
|
110
|
+
type: "alert";
|
|
111
|
+
componentInfo: {
|
|
112
|
+
name: string;
|
|
113
|
+
};
|
|
114
|
+
hover: () => D["actionReturn"];
|
|
115
|
+
focus: () => D["actionReturn"];
|
|
116
|
+
blur: () => D["actionReturn"];
|
|
117
|
+
}
|
|
118
|
+
export declare class Alert<D extends DriverT> extends BaseComponent<D, AlertWrapper<D>> {
|
|
119
|
+
componentInfo: {
|
|
120
|
+
name: string;
|
|
121
|
+
};
|
|
122
|
+
wrap(locator: D['locator']): AlertWrapper<D>;
|
|
123
|
+
byTestId: (id: string) => AlertWrapper<D>;
|
|
124
|
+
byHeadline: (headline: string) => AlertWrapper<D>;
|
|
125
|
+
}
|
|
126
|
+
export declare class AlertExpectations<D extends DriverT> {
|
|
127
|
+
private readonly ctx;
|
|
128
|
+
private readonly wrapper;
|
|
129
|
+
constructor(ctx: Context<D>, wrapper: AlertWrapper<D>);
|
|
130
|
+
toHaveProp: <T extends keyof AlertProps>(propName: T, value: AlertProps[T]) => D["expectReturn"];
|
|
131
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
132
|
+
toBeOpen: () => D["expectReturn"];
|
|
133
|
+
toBeClosed: () => D["expectReturn"];
|
|
134
|
+
}
|
|
135
|
+
type AudioPlayerProps = {
|
|
136
|
+
connotation: 'accent' | 'cta';
|
|
137
|
+
disabled: boolean;
|
|
138
|
+
durationFallback: boolean;
|
|
139
|
+
notime: boolean;
|
|
140
|
+
pauseButtonAriaLabel: string;
|
|
141
|
+
playButtonAriaLabel: string;
|
|
142
|
+
playbackRates: string;
|
|
143
|
+
skipBackwardAriaLabel: string;
|
|
144
|
+
skipBy: '0' | '5' | '10' | '30';
|
|
145
|
+
skipForwardAriaLabel: string;
|
|
146
|
+
sliderAriaLabel: string;
|
|
147
|
+
src: string;
|
|
148
|
+
};
|
|
149
|
+
export declare class AudioPlayerWrapper<D extends DriverT> extends BaseWrapper<D, VwcAudioPlayerElement> {
|
|
150
|
+
type: "audioPlayer";
|
|
151
|
+
componentInfo: {
|
|
152
|
+
name: string;
|
|
153
|
+
};
|
|
154
|
+
hover: () => D["actionReturn"];
|
|
155
|
+
focus: () => D["actionReturn"];
|
|
156
|
+
blur: () => D["actionReturn"];
|
|
157
|
+
}
|
|
158
|
+
export declare class AudioPlayer<D extends DriverT> extends BaseComponent<D, AudioPlayerWrapper<D>> {
|
|
159
|
+
componentInfo: {
|
|
160
|
+
name: string;
|
|
161
|
+
};
|
|
162
|
+
wrap(locator: D['locator']): AudioPlayerWrapper<D>;
|
|
163
|
+
byTestId: (id: string) => AudioPlayerWrapper<D>;
|
|
164
|
+
}
|
|
165
|
+
export declare class AudioPlayerExpectations<D extends DriverT> {
|
|
166
|
+
private readonly ctx;
|
|
167
|
+
private readonly wrapper;
|
|
168
|
+
constructor(ctx: Context<D>, wrapper: AudioPlayerWrapper<D>);
|
|
169
|
+
toHaveProp: <T extends keyof AudioPlayerProps>(propName: T, value: AudioPlayerProps[T]) => D["expectReturn"];
|
|
170
|
+
}
|
|
171
|
+
type AvatarProps = {
|
|
172
|
+
appearance: 'filled' | 'outlined' | 'duotone' | 'subtle';
|
|
173
|
+
clickable: boolean;
|
|
174
|
+
connotation: 'accent' | 'cta';
|
|
175
|
+
download: string;
|
|
176
|
+
href: string;
|
|
177
|
+
hreflang: string;
|
|
178
|
+
icon: IconId;
|
|
179
|
+
initials: string;
|
|
180
|
+
ping: string;
|
|
181
|
+
referrerpolicy: string;
|
|
182
|
+
rel: string;
|
|
183
|
+
shape: 'rounded' | 'pill';
|
|
184
|
+
size: 'condensed' | 'normal' | 'expanded';
|
|
185
|
+
target: '_self' | '_blank' | '_parent' | '_top';
|
|
186
|
+
type: string;
|
|
187
|
+
};
|
|
188
|
+
export declare class AvatarWrapper<D extends DriverT> extends BaseWrapper<D, VwcAvatarElement> {
|
|
189
|
+
type: "avatar";
|
|
190
|
+
componentInfo: {
|
|
191
|
+
name: string;
|
|
192
|
+
};
|
|
193
|
+
hover: () => D["actionReturn"];
|
|
194
|
+
focus: () => D["actionReturn"];
|
|
195
|
+
blur: () => D["actionReturn"];
|
|
196
|
+
}
|
|
197
|
+
export declare class Avatar<D extends DriverT> extends BaseComponent<D, AvatarWrapper<D>> {
|
|
198
|
+
componentInfo: {
|
|
199
|
+
name: string;
|
|
200
|
+
};
|
|
201
|
+
wrap(locator: D['locator']): AvatarWrapper<D>;
|
|
202
|
+
byTestId: (id: string) => AvatarWrapper<D>;
|
|
203
|
+
}
|
|
204
|
+
export declare class AvatarExpectations<D extends DriverT> {
|
|
205
|
+
private readonly ctx;
|
|
206
|
+
private readonly wrapper;
|
|
207
|
+
constructor(ctx: Context<D>, wrapper: AvatarWrapper<D>);
|
|
208
|
+
toHaveProp: <T extends keyof AvatarProps>(propName: T, value: AvatarProps[T]) => D["expectReturn"];
|
|
209
|
+
}
|
|
210
|
+
type BadgeProps = {
|
|
211
|
+
appearance: 'filled' | 'duotone' | 'subtle' | 'subtle-light';
|
|
212
|
+
connotation: 'accent' | 'cta' | 'success' | 'alert' | 'warning' | 'information' | 'announcement';
|
|
213
|
+
icon: IconId;
|
|
214
|
+
iconTrailing: boolean;
|
|
215
|
+
shape: 'rounded' | 'pill';
|
|
216
|
+
size: 'normal' | 'expanded';
|
|
217
|
+
text: string;
|
|
218
|
+
};
|
|
219
|
+
export declare class BadgeWrapper<D extends DriverT> extends BaseWrapper<D, VwcBadgeElement> {
|
|
220
|
+
type: "badge";
|
|
221
|
+
componentInfo: {
|
|
222
|
+
name: string;
|
|
223
|
+
};
|
|
224
|
+
hover: () => D["actionReturn"];
|
|
225
|
+
focus: () => D["actionReturn"];
|
|
226
|
+
blur: () => D["actionReturn"];
|
|
227
|
+
}
|
|
228
|
+
export declare class Badge<D extends DriverT> extends BaseComponent<D, BadgeWrapper<D>> {
|
|
229
|
+
componentInfo: {
|
|
230
|
+
name: string;
|
|
231
|
+
};
|
|
232
|
+
wrap(locator: D['locator']): BadgeWrapper<D>;
|
|
233
|
+
byTestId: (id: string) => BadgeWrapper<D>;
|
|
234
|
+
}
|
|
235
|
+
export declare class BadgeExpectations<D extends DriverT> {
|
|
236
|
+
private readonly ctx;
|
|
237
|
+
private readonly wrapper;
|
|
238
|
+
constructor(ctx: Context<D>, wrapper: BadgeWrapper<D>);
|
|
239
|
+
toHaveProp: <T extends keyof BadgeProps>(propName: T, value: BadgeProps[T]) => D["expectReturn"];
|
|
240
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
241
|
+
}
|
|
242
|
+
type BannerProps = {
|
|
243
|
+
actionHref: string;
|
|
244
|
+
actionText: string;
|
|
245
|
+
connotation: 'information' | 'announcement' | 'success' | 'warning' | 'alert';
|
|
246
|
+
dismissAriaLabel: string;
|
|
247
|
+
icon: IconId;
|
|
248
|
+
removable: boolean;
|
|
249
|
+
text: string;
|
|
250
|
+
};
|
|
251
|
+
export declare class BannerWrapper<D extends DriverT> extends BaseWrapper<D, VwcBannerElement> {
|
|
252
|
+
type: "banner";
|
|
253
|
+
componentInfo: {
|
|
254
|
+
name: string;
|
|
255
|
+
};
|
|
256
|
+
hover: () => D["actionReturn"];
|
|
257
|
+
focus: () => D["actionReturn"];
|
|
258
|
+
blur: () => D["actionReturn"];
|
|
259
|
+
dismiss: () => D["actionReturn"];
|
|
260
|
+
}
|
|
261
|
+
export declare class Banner<D extends DriverT> extends BaseComponent<D, BannerWrapper<D>> {
|
|
262
|
+
componentInfo: {
|
|
263
|
+
name: string;
|
|
264
|
+
};
|
|
265
|
+
wrap(locator: D['locator']): BannerWrapper<D>;
|
|
266
|
+
byTestId: (id: string) => BannerWrapper<D>;
|
|
267
|
+
byText: (text: string) => BannerWrapper<D>;
|
|
268
|
+
}
|
|
269
|
+
export declare class BannerExpectations<D extends DriverT> {
|
|
270
|
+
private readonly ctx;
|
|
271
|
+
private readonly wrapper;
|
|
272
|
+
constructor(ctx: Context<D>, wrapper: BannerWrapper<D>);
|
|
273
|
+
toHaveProp: <T extends keyof BannerProps>(propName: T, value: BannerProps[T]) => D["expectReturn"];
|
|
274
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
275
|
+
}
|
|
276
|
+
export declare class BreadcrumbWrapper<D extends DriverT> extends BaseWrapper<D, VwcBreadcrumbElement> {
|
|
277
|
+
type: "breadcrumb";
|
|
278
|
+
componentInfo: {
|
|
279
|
+
name: string;
|
|
280
|
+
};
|
|
281
|
+
hover: () => D["actionReturn"];
|
|
282
|
+
focus: () => D["actionReturn"];
|
|
283
|
+
blur: () => D["actionReturn"];
|
|
284
|
+
}
|
|
285
|
+
export declare class Breadcrumb<D extends DriverT> extends BaseComponent<D, BreadcrumbWrapper<D>> {
|
|
286
|
+
componentInfo: {
|
|
287
|
+
name: string;
|
|
288
|
+
};
|
|
289
|
+
wrap(locator: D['locator']): BreadcrumbWrapper<D>;
|
|
290
|
+
byTestId: (id: string) => BreadcrumbWrapper<D>;
|
|
291
|
+
}
|
|
292
|
+
export declare class BreadcrumbExpectations<D extends DriverT> {
|
|
293
|
+
private readonly ctx;
|
|
294
|
+
private readonly wrapper;
|
|
295
|
+
constructor(ctx: Context<D>, wrapper: BreadcrumbWrapper<D>);
|
|
296
|
+
toHaveProp: (propName: never, value: never) => never;
|
|
297
|
+
}
|
|
298
|
+
type BreadcrumbItemProps = {
|
|
299
|
+
download: string;
|
|
300
|
+
href: string;
|
|
301
|
+
hreflang: string;
|
|
302
|
+
ping: string;
|
|
303
|
+
referrerpolicy: string;
|
|
304
|
+
rel: string;
|
|
305
|
+
target: '_self' | '_blank' | '_parent' | '_top';
|
|
306
|
+
text: string;
|
|
307
|
+
type: string;
|
|
308
|
+
};
|
|
309
|
+
export declare class BreadcrumbItemWrapper<D extends DriverT> extends BaseWrapper<D, VwcBreadcrumbItemElement> {
|
|
310
|
+
type: "breadcrumbItem";
|
|
311
|
+
componentInfo: {
|
|
312
|
+
name: string;
|
|
313
|
+
};
|
|
314
|
+
hover: () => D["actionReturn"];
|
|
315
|
+
focus: () => D["actionReturn"];
|
|
316
|
+
blur: () => D["actionReturn"];
|
|
317
|
+
}
|
|
318
|
+
export declare class BreadcrumbItem<D extends DriverT> extends BaseComponent<D, BreadcrumbItemWrapper<D>> {
|
|
319
|
+
componentInfo: {
|
|
320
|
+
name: string;
|
|
321
|
+
};
|
|
322
|
+
wrap(locator: D['locator']): BreadcrumbItemWrapper<D>;
|
|
323
|
+
byTestId: (id: string) => BreadcrumbItemWrapper<D>;
|
|
324
|
+
}
|
|
325
|
+
export declare class BreadcrumbItemExpectations<D extends DriverT> {
|
|
326
|
+
private readonly ctx;
|
|
327
|
+
private readonly wrapper;
|
|
328
|
+
constructor(ctx: Context<D>, wrapper: BreadcrumbItemWrapper<D>);
|
|
329
|
+
toHaveProp: <T extends keyof BreadcrumbItemProps>(propName: T, value: BreadcrumbItemProps[T]) => D["expectReturn"];
|
|
330
|
+
}
|
|
331
|
+
type ButtonProps = {
|
|
332
|
+
active: boolean;
|
|
333
|
+
appearance: 'filled' | 'outlined' | 'ghost' | 'ghost-light' | 'outlined-light';
|
|
334
|
+
autofocus: boolean;
|
|
335
|
+
connotation: 'accent' | 'announcement' | 'cta' | 'success' | 'alert';
|
|
336
|
+
disabled: boolean;
|
|
337
|
+
download: string;
|
|
338
|
+
dropdownIndicator: boolean;
|
|
339
|
+
form: string;
|
|
340
|
+
formaction: string;
|
|
341
|
+
formenctype: string;
|
|
342
|
+
formmethod: string;
|
|
343
|
+
formnovalidate: boolean;
|
|
344
|
+
formtarget: '_self' | '_blank' | '_parent' | '_top';
|
|
345
|
+
href: string;
|
|
346
|
+
hreflang: string;
|
|
347
|
+
icon: IconId;
|
|
348
|
+
iconTrailing: boolean;
|
|
349
|
+
initialValue: string;
|
|
350
|
+
label: string;
|
|
351
|
+
name: string;
|
|
352
|
+
pending: boolean;
|
|
353
|
+
ping: string;
|
|
354
|
+
referrerpolicy: string;
|
|
355
|
+
rel: string;
|
|
356
|
+
required: boolean;
|
|
357
|
+
shape: 'rounded' | 'pill';
|
|
358
|
+
size: 'super-condensed' | 'condensed' | 'normal' | 'expanded';
|
|
359
|
+
stacked: boolean;
|
|
360
|
+
target: '_self' | '_blank' | '_parent' | '_top';
|
|
361
|
+
title: string;
|
|
362
|
+
type: 'submit' | 'reset' | 'button';
|
|
363
|
+
value: string;
|
|
364
|
+
};
|
|
365
|
+
export declare class ButtonWrapper<D extends DriverT> extends BaseWrapper<D, VwcButtonElement> {
|
|
366
|
+
type: "button";
|
|
367
|
+
componentInfo: {
|
|
368
|
+
name: string;
|
|
369
|
+
};
|
|
370
|
+
hover: () => D["actionReturn"];
|
|
371
|
+
focus: () => D["actionReturn"];
|
|
372
|
+
blur: () => D["actionReturn"];
|
|
373
|
+
click: () => D["actionReturn"];
|
|
374
|
+
}
|
|
375
|
+
export declare class Button<D extends DriverT> extends BaseComponent<D, ButtonWrapper<D>> {
|
|
376
|
+
componentInfo: {
|
|
377
|
+
name: string;
|
|
378
|
+
};
|
|
379
|
+
wrap(locator: D['locator']): ButtonWrapper<D>;
|
|
380
|
+
byTestId: (id: string) => ButtonWrapper<D>;
|
|
381
|
+
byLabel: (label: string) => ButtonWrapper<D>;
|
|
382
|
+
}
|
|
383
|
+
export declare class ButtonExpectations<D extends DriverT> {
|
|
384
|
+
private readonly ctx;
|
|
385
|
+
private readonly wrapper;
|
|
386
|
+
constructor(ctx: Context<D>, wrapper: ButtonWrapper<D>);
|
|
387
|
+
toHaveProp: <T extends keyof ButtonProps>(propName: T, value: ButtonProps[T]) => D["expectReturn"];
|
|
388
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
389
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
390
|
+
}
|
|
391
|
+
type CalendarProps = {
|
|
392
|
+
datetime: Date | string;
|
|
393
|
+
hour12: boolean;
|
|
394
|
+
locales: string | string[];
|
|
395
|
+
startDay: 'sunday' | 'monday';
|
|
396
|
+
stickyMode: 'none' | 'header' | 'column' | 'all';
|
|
397
|
+
};
|
|
398
|
+
export declare class CalendarWrapper<D extends DriverT> extends BaseWrapper<D, VwcCalendarElement> {
|
|
399
|
+
type: "calendar";
|
|
400
|
+
componentInfo: {
|
|
401
|
+
name: string;
|
|
402
|
+
};
|
|
403
|
+
hover: () => D["actionReturn"];
|
|
404
|
+
focus: () => D["actionReturn"];
|
|
405
|
+
blur: () => D["actionReturn"];
|
|
406
|
+
}
|
|
407
|
+
export declare class Calendar<D extends DriverT> extends BaseComponent<D, CalendarWrapper<D>> {
|
|
408
|
+
componentInfo: {
|
|
409
|
+
name: string;
|
|
410
|
+
};
|
|
411
|
+
wrap(locator: D['locator']): CalendarWrapper<D>;
|
|
412
|
+
byTestId: (id: string) => CalendarWrapper<D>;
|
|
413
|
+
}
|
|
414
|
+
export declare class CalendarExpectations<D extends DriverT> {
|
|
415
|
+
private readonly ctx;
|
|
416
|
+
private readonly wrapper;
|
|
417
|
+
constructor(ctx: Context<D>, wrapper: CalendarWrapper<D>);
|
|
418
|
+
toHaveProp: <T extends keyof CalendarProps>(propName: T, value: CalendarProps[T]) => D["expectReturn"];
|
|
419
|
+
}
|
|
420
|
+
type CalendarEventProps = {
|
|
421
|
+
appearance: 'filled' | 'duotone' | 'subtle';
|
|
422
|
+
connotation: 'accent' | 'cta' | 'success' | 'alert' | 'warning' | 'information' | 'announcement';
|
|
423
|
+
description: string;
|
|
424
|
+
duration: number;
|
|
425
|
+
heading: string;
|
|
426
|
+
overlapCount: number;
|
|
427
|
+
start: number;
|
|
428
|
+
};
|
|
429
|
+
export declare class CalendarEventWrapper<D extends DriverT> extends BaseWrapper<D, VwcCalendarEventElement> {
|
|
430
|
+
type: "calendarEvent";
|
|
431
|
+
componentInfo: {
|
|
432
|
+
name: string;
|
|
433
|
+
};
|
|
434
|
+
hover: () => D["actionReturn"];
|
|
435
|
+
focus: () => D["actionReturn"];
|
|
436
|
+
blur: () => D["actionReturn"];
|
|
437
|
+
}
|
|
438
|
+
export declare class CalendarEvent<D extends DriverT> extends BaseComponent<D, CalendarEventWrapper<D>> {
|
|
439
|
+
componentInfo: {
|
|
440
|
+
name: string;
|
|
441
|
+
};
|
|
442
|
+
wrap(locator: D['locator']): CalendarEventWrapper<D>;
|
|
443
|
+
byTestId: (id: string) => CalendarEventWrapper<D>;
|
|
444
|
+
}
|
|
445
|
+
export declare class CalendarEventExpectations<D extends DriverT> {
|
|
446
|
+
private readonly ctx;
|
|
447
|
+
private readonly wrapper;
|
|
448
|
+
constructor(ctx: Context<D>, wrapper: CalendarEventWrapper<D>);
|
|
449
|
+
toHaveProp: <T extends keyof CalendarEventProps>(propName: T, value: CalendarEventProps[T]) => D["expectReturn"];
|
|
450
|
+
}
|
|
451
|
+
type CardProps = {
|
|
452
|
+
appearance: 'elevated' | 'ghost' | 'outlined';
|
|
453
|
+
clickableCard: boolean;
|
|
454
|
+
download: string;
|
|
455
|
+
elevation: 0 | 2 | 4 | 8 | 12 | 16 | 24;
|
|
456
|
+
headline: string;
|
|
457
|
+
href: string;
|
|
458
|
+
hreflang: string;
|
|
459
|
+
icon: IconId;
|
|
460
|
+
ping: string;
|
|
461
|
+
referrerpolicy: string;
|
|
462
|
+
rel: string;
|
|
463
|
+
subtitle: string;
|
|
464
|
+
target: '_self' | '_blank' | '_parent' | '_top';
|
|
465
|
+
text: string;
|
|
466
|
+
type: string;
|
|
467
|
+
};
|
|
468
|
+
export declare class CardWrapper<D extends DriverT> extends BaseWrapper<D, VwcCardElement> {
|
|
469
|
+
type: "card";
|
|
470
|
+
componentInfo: {
|
|
471
|
+
name: string;
|
|
472
|
+
};
|
|
473
|
+
hover: () => D["actionReturn"];
|
|
474
|
+
focus: () => D["actionReturn"];
|
|
475
|
+
blur: () => D["actionReturn"];
|
|
476
|
+
}
|
|
477
|
+
export declare class Card<D extends DriverT> extends BaseComponent<D, CardWrapper<D>> {
|
|
478
|
+
componentInfo: {
|
|
479
|
+
name: string;
|
|
480
|
+
};
|
|
481
|
+
wrap(locator: D['locator']): CardWrapper<D>;
|
|
482
|
+
byTestId: (id: string) => CardWrapper<D>;
|
|
483
|
+
}
|
|
484
|
+
export declare class CardExpectations<D extends DriverT> {
|
|
485
|
+
private readonly ctx;
|
|
486
|
+
private readonly wrapper;
|
|
487
|
+
constructor(ctx: Context<D>, wrapper: CardWrapper<D>);
|
|
488
|
+
toHaveProp: <T extends keyof CardProps>(propName: T, value: CardProps[T]) => D["expectReturn"];
|
|
489
|
+
toHaveHeadline: (value: any) => D["expectReturn"];
|
|
490
|
+
}
|
|
491
|
+
type CheckboxProps = {
|
|
492
|
+
checked: boolean;
|
|
493
|
+
connotation: 'accent' | 'cta';
|
|
494
|
+
defaultChecked: boolean;
|
|
495
|
+
disabled: boolean;
|
|
496
|
+
errorText: string;
|
|
497
|
+
helperText: string;
|
|
498
|
+
indeterminate: boolean;
|
|
499
|
+
initialValue: string;
|
|
500
|
+
label: string;
|
|
501
|
+
name: string;
|
|
502
|
+
readonly: boolean;
|
|
503
|
+
required: boolean;
|
|
504
|
+
successText: string;
|
|
505
|
+
tabindex: string;
|
|
506
|
+
value: string;
|
|
507
|
+
};
|
|
508
|
+
export declare class CheckboxWrapper<D extends DriverT> extends BaseWrapper<D, VwcCheckboxElement> {
|
|
509
|
+
type: "checkbox";
|
|
510
|
+
componentInfo: {
|
|
511
|
+
name: string;
|
|
512
|
+
};
|
|
513
|
+
hover: () => D["actionReturn"];
|
|
514
|
+
focus: () => D["actionReturn"];
|
|
515
|
+
blur: () => D["actionReturn"];
|
|
516
|
+
check: () => D["actionReturn"];
|
|
517
|
+
uncheck: () => D["actionReturn"];
|
|
518
|
+
}
|
|
519
|
+
export declare class Checkbox<D extends DriverT> extends BaseComponent<D, CheckboxWrapper<D>> {
|
|
520
|
+
componentInfo: {
|
|
521
|
+
name: string;
|
|
522
|
+
};
|
|
523
|
+
wrap(locator: D['locator']): CheckboxWrapper<D>;
|
|
524
|
+
byTestId: (id: string) => CheckboxWrapper<D>;
|
|
525
|
+
byLabel: (label: string) => CheckboxWrapper<D>;
|
|
526
|
+
}
|
|
527
|
+
export declare class CheckboxExpectations<D extends DriverT> {
|
|
528
|
+
private readonly ctx;
|
|
529
|
+
private readonly wrapper;
|
|
530
|
+
constructor(ctx: Context<D>, wrapper: CheckboxWrapper<D>);
|
|
531
|
+
toHaveProp: <T extends keyof CheckboxProps>(propName: T, value: CheckboxProps[T]) => D["expectReturn"];
|
|
532
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
533
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
534
|
+
toBeChecked: () => D["expectReturn"];
|
|
535
|
+
toBeUnchecked: () => D["expectReturn"];
|
|
536
|
+
toBeIndeterminate: () => D["expectReturn"];
|
|
537
|
+
}
|
|
538
|
+
type ComboboxProps = {
|
|
539
|
+
appearance: 'fieldset' | 'ghost';
|
|
540
|
+
autocomplete: 'inline' | 'list' | 'both' | 'none';
|
|
541
|
+
disabled: boolean;
|
|
542
|
+
errorText: string;
|
|
543
|
+
fixedDropdown: boolean;
|
|
544
|
+
helperText: string;
|
|
545
|
+
icon: IconId;
|
|
546
|
+
initialValue: string;
|
|
547
|
+
label: string;
|
|
548
|
+
name: string;
|
|
549
|
+
open: boolean;
|
|
550
|
+
placeholder: string;
|
|
551
|
+
placement: 'top' | 'bottom';
|
|
552
|
+
required: boolean;
|
|
553
|
+
scale: 'condensed' | 'normal';
|
|
554
|
+
shape: 'rounded' | 'pill';
|
|
555
|
+
successText: string;
|
|
556
|
+
value: string;
|
|
557
|
+
};
|
|
558
|
+
export declare class ComboboxWrapper<D extends DriverT> extends BaseWrapper<D, VwcComboboxElement> {
|
|
559
|
+
type: "combobox";
|
|
560
|
+
componentInfo: {
|
|
561
|
+
name: string;
|
|
562
|
+
};
|
|
563
|
+
hover: () => D["actionReturn"];
|
|
564
|
+
focus: () => D["actionReturn"];
|
|
565
|
+
blur: () => D["actionReturn"];
|
|
566
|
+
fill: (text: string) => D["actionReturn"];
|
|
567
|
+
clear: () => D["actionReturn"];
|
|
568
|
+
selectOptionByText: (text: string) => D["actionReturn"];
|
|
569
|
+
selectOptionByValue: (value: string) => D["actionReturn"];
|
|
570
|
+
}
|
|
571
|
+
export declare class Combobox<D extends DriverT> extends BaseComponent<D, ComboboxWrapper<D>> {
|
|
572
|
+
componentInfo: {
|
|
573
|
+
name: string;
|
|
574
|
+
};
|
|
575
|
+
wrap(locator: D['locator']): ComboboxWrapper<D>;
|
|
576
|
+
byTestId: (id: string) => ComboboxWrapper<D>;
|
|
577
|
+
byLabel: (label: string) => ComboboxWrapper<D>;
|
|
578
|
+
}
|
|
579
|
+
export declare class ComboboxExpectations<D extends DriverT> {
|
|
580
|
+
private readonly ctx;
|
|
581
|
+
private readonly wrapper;
|
|
582
|
+
constructor(ctx: Context<D>, wrapper: ComboboxWrapper<D>);
|
|
583
|
+
toHaveProp: <T extends keyof ComboboxProps>(propName: T, value: ComboboxProps[T]) => D["expectReturn"];
|
|
584
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
585
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
586
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
587
|
+
}
|
|
588
|
+
type DataGridProps = {
|
|
589
|
+
fixedColumns: number;
|
|
590
|
+
generateHeader: 'none' | 'default' | 'sticky';
|
|
591
|
+
gridTemplateColumns: string;
|
|
592
|
+
noTabbing: boolean;
|
|
593
|
+
rowsData: any[];
|
|
594
|
+
selectionMode: 'none' | 'single-row' | 'multi-row' | 'single-cell' | 'multi-cell';
|
|
595
|
+
};
|
|
596
|
+
export declare class DataGridWrapper<D extends DriverT> extends BaseWrapper<D, VwcDataGridElement> {
|
|
597
|
+
type: "dataGrid";
|
|
598
|
+
componentInfo: {
|
|
599
|
+
name: string;
|
|
600
|
+
};
|
|
601
|
+
hover: () => D["actionReturn"];
|
|
602
|
+
focus: () => D["actionReturn"];
|
|
603
|
+
blur: () => D["actionReturn"];
|
|
604
|
+
}
|
|
605
|
+
export declare class DataGrid<D extends DriverT> extends BaseComponent<D, DataGridWrapper<D>> {
|
|
606
|
+
componentInfo: {
|
|
607
|
+
name: string;
|
|
608
|
+
};
|
|
609
|
+
wrap(locator: D['locator']): DataGridWrapper<D>;
|
|
610
|
+
byTestId: (id: string) => DataGridWrapper<D>;
|
|
611
|
+
}
|
|
612
|
+
export declare class DataGridExpectations<D extends DriverT> {
|
|
613
|
+
private readonly ctx;
|
|
614
|
+
private readonly wrapper;
|
|
615
|
+
constructor(ctx: Context<D>, wrapper: DataGridWrapper<D>);
|
|
616
|
+
toHaveProp: <T extends keyof DataGridProps>(propName: T, value: DataGridProps[T]) => D["expectReturn"];
|
|
617
|
+
}
|
|
618
|
+
type DataGridCellProps = {
|
|
619
|
+
cellType: 'default' | 'columnheader' | 'rowheader';
|
|
620
|
+
columnDefinition: object;
|
|
621
|
+
gridColumn: string;
|
|
622
|
+
selected: boolean;
|
|
623
|
+
sortDirection: 'none' | 'ascending' | 'descending' | 'other';
|
|
624
|
+
};
|
|
625
|
+
export declare class DataGridCellWrapper<D extends DriverT> extends BaseWrapper<D, VwcDataGridCellElement> {
|
|
626
|
+
type: "dataGridCell";
|
|
627
|
+
componentInfo: {
|
|
628
|
+
name: string;
|
|
629
|
+
};
|
|
630
|
+
hover: () => D["actionReturn"];
|
|
631
|
+
focus: () => D["actionReturn"];
|
|
632
|
+
blur: () => D["actionReturn"];
|
|
633
|
+
}
|
|
634
|
+
export declare class DataGridCell<D extends DriverT> extends BaseComponent<D, DataGridCellWrapper<D>> {
|
|
635
|
+
componentInfo: {
|
|
636
|
+
name: string;
|
|
637
|
+
};
|
|
638
|
+
wrap(locator: D['locator']): DataGridCellWrapper<D>;
|
|
639
|
+
byTestId: (id: string) => DataGridCellWrapper<D>;
|
|
640
|
+
}
|
|
641
|
+
export declare class DataGridCellExpectations<D extends DriverT> {
|
|
642
|
+
private readonly ctx;
|
|
643
|
+
private readonly wrapper;
|
|
644
|
+
constructor(ctx: Context<D>, wrapper: DataGridCellWrapper<D>);
|
|
645
|
+
toHaveProp: <T extends keyof DataGridCellProps>(propName: T, value: DataGridCellProps[T]) => D["expectReturn"];
|
|
646
|
+
}
|
|
647
|
+
type DataGridRowProps = {
|
|
648
|
+
gridTemplateColumns: string;
|
|
649
|
+
rowType: 'default' | 'header' | 'sticky-header';
|
|
650
|
+
selected: boolean;
|
|
651
|
+
};
|
|
652
|
+
export declare class DataGridRowWrapper<D extends DriverT> extends BaseWrapper<D, VwcDataGridRowElement> {
|
|
653
|
+
type: "dataGridRow";
|
|
654
|
+
componentInfo: {
|
|
655
|
+
name: string;
|
|
656
|
+
};
|
|
657
|
+
hover: () => D["actionReturn"];
|
|
658
|
+
focus: () => D["actionReturn"];
|
|
659
|
+
blur: () => D["actionReturn"];
|
|
660
|
+
}
|
|
661
|
+
export declare class DataGridRow<D extends DriverT> extends BaseComponent<D, DataGridRowWrapper<D>> {
|
|
662
|
+
componentInfo: {
|
|
663
|
+
name: string;
|
|
664
|
+
};
|
|
665
|
+
wrap(locator: D['locator']): DataGridRowWrapper<D>;
|
|
666
|
+
byTestId: (id: string) => DataGridRowWrapper<D>;
|
|
667
|
+
}
|
|
668
|
+
export declare class DataGridRowExpectations<D extends DriverT> {
|
|
669
|
+
private readonly ctx;
|
|
670
|
+
private readonly wrapper;
|
|
671
|
+
constructor(ctx: Context<D>, wrapper: DataGridRowWrapper<D>);
|
|
672
|
+
toHaveProp: <T extends keyof DataGridRowProps>(propName: T, value: DataGridRowProps[T]) => D["expectReturn"];
|
|
673
|
+
}
|
|
674
|
+
type DatePickerProps = {
|
|
675
|
+
disabled: boolean;
|
|
676
|
+
errorText: string;
|
|
677
|
+
helperText: string;
|
|
678
|
+
initialValue: string;
|
|
679
|
+
label: string;
|
|
680
|
+
max: string;
|
|
681
|
+
min: string;
|
|
682
|
+
name: string;
|
|
683
|
+
readonly: boolean;
|
|
684
|
+
required: boolean;
|
|
685
|
+
value: string;
|
|
686
|
+
};
|
|
687
|
+
export declare class DatePickerWrapper<D extends DriverT> extends BaseWrapper<D, VwcDatePickerElement> {
|
|
688
|
+
type: "datePicker";
|
|
689
|
+
componentInfo: {
|
|
690
|
+
name: string;
|
|
691
|
+
};
|
|
692
|
+
hover: () => D["actionReturn"];
|
|
693
|
+
focus: () => D["actionReturn"];
|
|
694
|
+
blur: () => D["actionReturn"];
|
|
695
|
+
clear: () => D["actionReturn"];
|
|
696
|
+
selectDate: (date: string) => D["actionReturn"];
|
|
697
|
+
}
|
|
698
|
+
export declare class DatePicker<D extends DriverT> extends BaseComponent<D, DatePickerWrapper<D>> {
|
|
699
|
+
componentInfo: {
|
|
700
|
+
name: string;
|
|
701
|
+
};
|
|
702
|
+
wrap(locator: D['locator']): DatePickerWrapper<D>;
|
|
703
|
+
byTestId: (id: string) => DatePickerWrapper<D>;
|
|
704
|
+
byLabel: (label: string) => DatePickerWrapper<D>;
|
|
705
|
+
}
|
|
706
|
+
export declare class DatePickerExpectations<D extends DriverT> {
|
|
707
|
+
private readonly ctx;
|
|
708
|
+
private readonly wrapper;
|
|
709
|
+
constructor(ctx: Context<D>, wrapper: DatePickerWrapper<D>);
|
|
710
|
+
toHaveProp: <T extends keyof DatePickerProps>(propName: T, value: DatePickerProps[T]) => D["expectReturn"];
|
|
711
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
712
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
713
|
+
}
|
|
714
|
+
type DateRangePickerProps = {
|
|
715
|
+
disabled: boolean;
|
|
716
|
+
end: string;
|
|
717
|
+
errorText: string;
|
|
718
|
+
helperText: string;
|
|
719
|
+
initialEnd: string;
|
|
720
|
+
initialStart: string;
|
|
721
|
+
initialValue: string;
|
|
722
|
+
label: string;
|
|
723
|
+
max: string;
|
|
724
|
+
min: string;
|
|
725
|
+
name: string;
|
|
726
|
+
readonly: boolean;
|
|
727
|
+
required: boolean;
|
|
728
|
+
start: string;
|
|
729
|
+
value: string;
|
|
730
|
+
};
|
|
731
|
+
export declare class DateRangePickerWrapper<D extends DriverT> extends BaseWrapper<D, VwcDateRangePickerElement> {
|
|
732
|
+
type: "dateRangePicker";
|
|
733
|
+
componentInfo: {
|
|
734
|
+
name: string;
|
|
735
|
+
};
|
|
736
|
+
hover: () => D["actionReturn"];
|
|
737
|
+
focus: () => D["actionReturn"];
|
|
738
|
+
blur: () => D["actionReturn"];
|
|
739
|
+
clear: () => D["actionReturn"];
|
|
740
|
+
selectDateRange: (range: [string, string]) => D["actionReturn"];
|
|
741
|
+
}
|
|
742
|
+
export declare class DateRangePicker<D extends DriverT> extends BaseComponent<D, DateRangePickerWrapper<D>> {
|
|
743
|
+
componentInfo: {
|
|
744
|
+
name: string;
|
|
745
|
+
};
|
|
746
|
+
wrap(locator: D['locator']): DateRangePickerWrapper<D>;
|
|
747
|
+
byTestId: (id: string) => DateRangePickerWrapper<D>;
|
|
748
|
+
byLabel: (label: string) => DateRangePickerWrapper<D>;
|
|
749
|
+
}
|
|
750
|
+
export declare class DateRangePickerExpectations<D extends DriverT> {
|
|
751
|
+
private readonly ctx;
|
|
752
|
+
private readonly wrapper;
|
|
753
|
+
constructor(ctx: Context<D>, wrapper: DateRangePickerWrapper<D>);
|
|
754
|
+
toHaveProp: <T extends keyof DateRangePickerProps>(propName: T, value: DateRangePickerProps[T]) => D["expectReturn"];
|
|
755
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
756
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
757
|
+
toHaveRange: (value: any) => D["expectReturn"];
|
|
758
|
+
}
|
|
759
|
+
type DateTimePickerProps = {
|
|
760
|
+
clock: '12h' | '24h';
|
|
761
|
+
disabled: boolean;
|
|
762
|
+
errorText: string;
|
|
763
|
+
helperText: string;
|
|
764
|
+
initialValue: string;
|
|
765
|
+
label: string;
|
|
766
|
+
max: string;
|
|
767
|
+
maxDate: string;
|
|
768
|
+
maxTime: string;
|
|
769
|
+
min: string;
|
|
770
|
+
minDate: string;
|
|
771
|
+
minTime: string;
|
|
772
|
+
minutesStep: number;
|
|
773
|
+
name: string;
|
|
774
|
+
readonly: boolean;
|
|
775
|
+
required: boolean;
|
|
776
|
+
secondsStep: number;
|
|
777
|
+
value: string;
|
|
778
|
+
};
|
|
779
|
+
export declare class DateTimePickerWrapper<D extends DriverT> extends BaseWrapper<D, VwcDateTimePickerElement> {
|
|
780
|
+
type: "dateTimePicker";
|
|
781
|
+
componentInfo: {
|
|
782
|
+
name: string;
|
|
783
|
+
};
|
|
784
|
+
hover: () => D["actionReturn"];
|
|
785
|
+
focus: () => D["actionReturn"];
|
|
786
|
+
blur: () => D["actionReturn"];
|
|
787
|
+
clear: () => D["actionReturn"];
|
|
788
|
+
selectDateTime: (dateTime: string) => D["actionReturn"];
|
|
789
|
+
}
|
|
790
|
+
export declare class DateTimePicker<D extends DriverT> extends BaseComponent<D, DateTimePickerWrapper<D>> {
|
|
791
|
+
componentInfo: {
|
|
792
|
+
name: string;
|
|
793
|
+
};
|
|
794
|
+
wrap(locator: D['locator']): DateTimePickerWrapper<D>;
|
|
795
|
+
byTestId: (id: string) => DateTimePickerWrapper<D>;
|
|
796
|
+
byLabel: (label: string) => DateTimePickerWrapper<D>;
|
|
797
|
+
}
|
|
798
|
+
export declare class DateTimePickerExpectations<D extends DriverT> {
|
|
799
|
+
private readonly ctx;
|
|
800
|
+
private readonly wrapper;
|
|
801
|
+
constructor(ctx: Context<D>, wrapper: DateTimePickerWrapper<D>);
|
|
802
|
+
toHaveProp: <T extends keyof DateTimePickerProps>(propName: T, value: DateTimePickerProps[T]) => D["expectReturn"];
|
|
803
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
804
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
805
|
+
}
|
|
806
|
+
type DialPadProps = {
|
|
807
|
+
autofocus: boolean;
|
|
808
|
+
callActive: boolean;
|
|
809
|
+
callButtonLabel: string;
|
|
810
|
+
disabled: boolean;
|
|
811
|
+
endCallButtonLabel: string;
|
|
812
|
+
helperText: string;
|
|
813
|
+
noCall: boolean;
|
|
814
|
+
noInput: boolean;
|
|
815
|
+
pattern: string;
|
|
816
|
+
pending: boolean;
|
|
817
|
+
placeholder: string;
|
|
818
|
+
value: string;
|
|
819
|
+
};
|
|
820
|
+
export declare class DialPadWrapper<D extends DriverT> extends BaseWrapper<D, VwcDialPadElement> {
|
|
821
|
+
type: "dialPad";
|
|
822
|
+
componentInfo: {
|
|
823
|
+
name: string;
|
|
824
|
+
};
|
|
825
|
+
hover: () => D["actionReturn"];
|
|
826
|
+
focus: () => D["actionReturn"];
|
|
827
|
+
blur: () => D["actionReturn"];
|
|
828
|
+
}
|
|
829
|
+
export declare class DialPad<D extends DriverT> extends BaseComponent<D, DialPadWrapper<D>> {
|
|
830
|
+
componentInfo: {
|
|
831
|
+
name: string;
|
|
832
|
+
};
|
|
833
|
+
wrap(locator: D['locator']): DialPadWrapper<D>;
|
|
834
|
+
byTestId: (id: string) => DialPadWrapper<D>;
|
|
835
|
+
}
|
|
836
|
+
export declare class DialPadExpectations<D extends DriverT> {
|
|
837
|
+
private readonly ctx;
|
|
838
|
+
private readonly wrapper;
|
|
839
|
+
constructor(ctx: Context<D>, wrapper: DialPadWrapper<D>);
|
|
840
|
+
toHaveProp: <T extends keyof DialPadProps>(propName: T, value: DialPadProps[T]) => D["expectReturn"];
|
|
841
|
+
}
|
|
842
|
+
type DialogProps = {
|
|
843
|
+
dismissButtonAriaLabel: string;
|
|
844
|
+
fullWidthBody: boolean;
|
|
845
|
+
headline: string;
|
|
846
|
+
icon: IconId;
|
|
847
|
+
iconPlacement: 'top' | 'side';
|
|
848
|
+
modal: boolean;
|
|
849
|
+
noDismissButton: boolean;
|
|
850
|
+
noDismissOnEsc: boolean;
|
|
851
|
+
noLightDismiss: boolean;
|
|
852
|
+
nonDismissible: boolean;
|
|
853
|
+
open: boolean;
|
|
854
|
+
scrollableBody: boolean;
|
|
855
|
+
subtitle: string;
|
|
856
|
+
};
|
|
857
|
+
export declare class DialogWrapper<D extends DriverT> extends BaseWrapper<D, VwcDialogElement> {
|
|
858
|
+
type: "dialog";
|
|
859
|
+
componentInfo: {
|
|
860
|
+
name: string;
|
|
861
|
+
};
|
|
862
|
+
hover: () => D["actionReturn"];
|
|
863
|
+
focus: () => D["actionReturn"];
|
|
864
|
+
blur: () => D["actionReturn"];
|
|
865
|
+
dismiss: () => D["actionReturn"];
|
|
866
|
+
}
|
|
867
|
+
export declare class Dialog<D extends DriverT> extends BaseComponent<D, DialogWrapper<D>> {
|
|
868
|
+
componentInfo: {
|
|
869
|
+
name: string;
|
|
870
|
+
};
|
|
871
|
+
wrap(locator: D['locator']): DialogWrapper<D>;
|
|
872
|
+
byTestId: (id: string) => DialogWrapper<D>;
|
|
873
|
+
byHeadline: (headline: string) => DialogWrapper<D>;
|
|
874
|
+
}
|
|
875
|
+
export declare class DialogExpectations<D extends DriverT> {
|
|
876
|
+
private readonly ctx;
|
|
877
|
+
private readonly wrapper;
|
|
878
|
+
constructor(ctx: Context<D>, wrapper: DialogWrapper<D>);
|
|
879
|
+
toHaveProp: <T extends keyof DialogProps>(propName: T, value: DialogProps[T]) => D["expectReturn"];
|
|
880
|
+
toBeOpen: () => D["expectReturn"];
|
|
881
|
+
toBeClosed: () => D["expectReturn"];
|
|
882
|
+
toHaveHeadline: (value: any) => D["expectReturn"];
|
|
883
|
+
}
|
|
884
|
+
type DividerProps = {
|
|
885
|
+
appearance: 'ghost' | 'subtle';
|
|
886
|
+
orientation: 'horizontal' | 'vertical';
|
|
887
|
+
};
|
|
888
|
+
export declare class DividerWrapper<D extends DriverT> extends BaseWrapper<D, VwcDividerElement> {
|
|
889
|
+
type: "divider";
|
|
890
|
+
componentInfo: {
|
|
891
|
+
name: string;
|
|
892
|
+
};
|
|
893
|
+
hover: () => D["actionReturn"];
|
|
894
|
+
focus: () => D["actionReturn"];
|
|
895
|
+
blur: () => D["actionReturn"];
|
|
896
|
+
}
|
|
897
|
+
export declare class Divider<D extends DriverT> extends BaseComponent<D, DividerWrapper<D>> {
|
|
898
|
+
componentInfo: {
|
|
899
|
+
name: string;
|
|
900
|
+
};
|
|
901
|
+
wrap(locator: D['locator']): DividerWrapper<D>;
|
|
902
|
+
byTestId: (id: string) => DividerWrapper<D>;
|
|
903
|
+
}
|
|
904
|
+
export declare class DividerExpectations<D extends DriverT> {
|
|
905
|
+
private readonly ctx;
|
|
906
|
+
private readonly wrapper;
|
|
907
|
+
constructor(ctx: Context<D>, wrapper: DividerWrapper<D>);
|
|
908
|
+
toHaveProp: <T extends keyof DividerProps>(propName: T, value: DividerProps[T]) => D["expectReturn"];
|
|
909
|
+
}
|
|
910
|
+
type EmptyStateProps = {
|
|
911
|
+
connotation: 'accent' | 'cta' | 'success' | 'alert' | 'warning' | 'information';
|
|
912
|
+
headline: string;
|
|
913
|
+
icon: IconId;
|
|
914
|
+
iconDecoration: 'outlined' | 'filled';
|
|
915
|
+
};
|
|
916
|
+
export declare class EmptyStateWrapper<D extends DriverT> extends BaseWrapper<D, VwcEmptyStateElement> {
|
|
917
|
+
type: "emptyState";
|
|
918
|
+
componentInfo: {
|
|
919
|
+
name: string;
|
|
920
|
+
};
|
|
921
|
+
hover: () => D["actionReturn"];
|
|
922
|
+
focus: () => D["actionReturn"];
|
|
923
|
+
blur: () => D["actionReturn"];
|
|
924
|
+
}
|
|
925
|
+
export declare class EmptyState<D extends DriverT> extends BaseComponent<D, EmptyStateWrapper<D>> {
|
|
926
|
+
componentInfo: {
|
|
927
|
+
name: string;
|
|
928
|
+
};
|
|
929
|
+
wrap(locator: D['locator']): EmptyStateWrapper<D>;
|
|
930
|
+
byTestId: (id: string) => EmptyStateWrapper<D>;
|
|
931
|
+
}
|
|
932
|
+
export declare class EmptyStateExpectations<D extends DriverT> {
|
|
933
|
+
private readonly ctx;
|
|
934
|
+
private readonly wrapper;
|
|
935
|
+
constructor(ctx: Context<D>, wrapper: EmptyStateWrapper<D>);
|
|
936
|
+
toHaveProp: <T extends keyof EmptyStateProps>(propName: T, value: EmptyStateProps[T]) => D["expectReturn"];
|
|
937
|
+
}
|
|
938
|
+
type FabProps = {
|
|
939
|
+
autofocus: boolean;
|
|
940
|
+
connotation: 'cta' | 'accent' | 'announcement';
|
|
941
|
+
disabled: boolean;
|
|
942
|
+
form: string;
|
|
943
|
+
formaction: string;
|
|
944
|
+
formenctype: string;
|
|
945
|
+
formmethod: string;
|
|
946
|
+
formnovalidate: boolean;
|
|
947
|
+
formtarget: '_self' | '_blank' | '_parent' | '_top';
|
|
948
|
+
icon: IconId;
|
|
949
|
+
iconTrailing: boolean;
|
|
950
|
+
initialValue: string;
|
|
951
|
+
label: string;
|
|
952
|
+
name: string;
|
|
953
|
+
required: boolean;
|
|
954
|
+
size: 'condensed' | 'normal' | 'expanded';
|
|
955
|
+
type: 'submit' | 'reset' | 'button';
|
|
956
|
+
value: string;
|
|
957
|
+
};
|
|
958
|
+
export declare class FabWrapper<D extends DriverT> extends BaseWrapper<D, VwcFabElement> {
|
|
959
|
+
type: "fab";
|
|
960
|
+
componentInfo: {
|
|
961
|
+
name: string;
|
|
962
|
+
};
|
|
963
|
+
hover: () => D["actionReturn"];
|
|
964
|
+
focus: () => D["actionReturn"];
|
|
965
|
+
blur: () => D["actionReturn"];
|
|
966
|
+
click: () => D["actionReturn"];
|
|
967
|
+
}
|
|
968
|
+
export declare class Fab<D extends DriverT> extends BaseComponent<D, FabWrapper<D>> {
|
|
969
|
+
componentInfo: {
|
|
970
|
+
name: string;
|
|
971
|
+
};
|
|
972
|
+
wrap(locator: D['locator']): FabWrapper<D>;
|
|
973
|
+
byTestId: (id: string) => FabWrapper<D>;
|
|
974
|
+
byLabel: (label: string) => FabWrapper<D>;
|
|
975
|
+
}
|
|
976
|
+
export declare class FabExpectations<D extends DriverT> {
|
|
977
|
+
private readonly ctx;
|
|
978
|
+
private readonly wrapper;
|
|
979
|
+
constructor(ctx: Context<D>, wrapper: FabWrapper<D>);
|
|
980
|
+
toHaveProp: <T extends keyof FabProps>(propName: T, value: FabProps[T]) => D["expectReturn"];
|
|
981
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
982
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
983
|
+
}
|
|
984
|
+
type FilePickerProps = {
|
|
985
|
+
accept: string;
|
|
986
|
+
disabled: boolean;
|
|
987
|
+
errorText: string;
|
|
988
|
+
fileTooBigError: string;
|
|
989
|
+
helperText: string;
|
|
990
|
+
initialValue: string;
|
|
991
|
+
invalidFileTypeError: string;
|
|
992
|
+
label: string;
|
|
993
|
+
maxFileSize: number;
|
|
994
|
+
maxFiles: number;
|
|
995
|
+
maxFilesExceededError: string;
|
|
996
|
+
name: string;
|
|
997
|
+
required: boolean;
|
|
998
|
+
singleFile: boolean;
|
|
999
|
+
size: 'normal' | 'expanded';
|
|
1000
|
+
value: string;
|
|
1001
|
+
};
|
|
1002
|
+
export declare class FilePickerWrapper<D extends DriverT> extends BaseWrapper<D, VwcFilePickerElement> {
|
|
1003
|
+
type: "filePicker";
|
|
1004
|
+
componentInfo: {
|
|
1005
|
+
name: string;
|
|
1006
|
+
};
|
|
1007
|
+
hover: () => D["actionReturn"];
|
|
1008
|
+
focus: () => D["actionReturn"];
|
|
1009
|
+
blur: () => D["actionReturn"];
|
|
1010
|
+
}
|
|
1011
|
+
export declare class FilePicker<D extends DriverT> extends BaseComponent<D, FilePickerWrapper<D>> {
|
|
1012
|
+
componentInfo: {
|
|
1013
|
+
name: string;
|
|
1014
|
+
};
|
|
1015
|
+
wrap(locator: D['locator']): FilePickerWrapper<D>;
|
|
1016
|
+
byTestId: (id: string) => FilePickerWrapper<D>;
|
|
1017
|
+
byLabel: (label: string) => FilePickerWrapper<D>;
|
|
1018
|
+
}
|
|
1019
|
+
export declare class FilePickerExpectations<D extends DriverT> {
|
|
1020
|
+
private readonly ctx;
|
|
1021
|
+
private readonly wrapper;
|
|
1022
|
+
constructor(ctx: Context<D>, wrapper: FilePickerWrapper<D>);
|
|
1023
|
+
toHaveProp: <T extends keyof FilePickerProps>(propName: T, value: FilePickerProps[T]) => D["expectReturn"];
|
|
1024
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
1025
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
1026
|
+
}
|
|
1027
|
+
type HeaderProps = {
|
|
1028
|
+
alternate: boolean;
|
|
1029
|
+
elevationShadow: boolean;
|
|
1030
|
+
};
|
|
1031
|
+
export declare class HeaderWrapper<D extends DriverT> extends BaseWrapper<D, VwcHeaderElement> {
|
|
1032
|
+
type: "header";
|
|
1033
|
+
componentInfo: {
|
|
1034
|
+
name: string;
|
|
1035
|
+
};
|
|
1036
|
+
hover: () => D["actionReturn"];
|
|
1037
|
+
focus: () => D["actionReturn"];
|
|
1038
|
+
blur: () => D["actionReturn"];
|
|
1039
|
+
}
|
|
1040
|
+
export declare class Header<D extends DriverT> extends BaseComponent<D, HeaderWrapper<D>> {
|
|
1041
|
+
componentInfo: {
|
|
1042
|
+
name: string;
|
|
1043
|
+
};
|
|
1044
|
+
wrap(locator: D['locator']): HeaderWrapper<D>;
|
|
1045
|
+
byTestId: (id: string) => HeaderWrapper<D>;
|
|
1046
|
+
}
|
|
1047
|
+
export declare class HeaderExpectations<D extends DriverT> {
|
|
1048
|
+
private readonly ctx;
|
|
1049
|
+
private readonly wrapper;
|
|
1050
|
+
constructor(ctx: Context<D>, wrapper: HeaderWrapper<D>);
|
|
1051
|
+
toHaveProp: <T extends keyof HeaderProps>(propName: T, value: HeaderProps[T]) => D["expectReturn"];
|
|
1052
|
+
}
|
|
1053
|
+
type IconProps = {
|
|
1054
|
+
connotation: 'accent' | 'cta' | 'success' | 'alert' | 'warning' | 'information' | 'announcement';
|
|
1055
|
+
label: string;
|
|
1056
|
+
name: IconId;
|
|
1057
|
+
size: -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5;
|
|
1058
|
+
};
|
|
1059
|
+
export declare class IconWrapper<D extends DriverT> extends BaseWrapper<D, VwcIconElement> {
|
|
1060
|
+
type: "icon";
|
|
1061
|
+
componentInfo: {
|
|
1062
|
+
name: string;
|
|
1063
|
+
};
|
|
1064
|
+
hover: () => D["actionReturn"];
|
|
1065
|
+
focus: () => D["actionReturn"];
|
|
1066
|
+
blur: () => D["actionReturn"];
|
|
1067
|
+
}
|
|
1068
|
+
export declare class Icon<D extends DriverT> extends BaseComponent<D, IconWrapper<D>> {
|
|
1069
|
+
componentInfo: {
|
|
1070
|
+
name: string;
|
|
1071
|
+
};
|
|
1072
|
+
wrap(locator: D['locator']): IconWrapper<D>;
|
|
1073
|
+
byTestId: (id: string) => IconWrapper<D>;
|
|
1074
|
+
}
|
|
1075
|
+
export declare class IconExpectations<D extends DriverT> {
|
|
1076
|
+
private readonly ctx;
|
|
1077
|
+
private readonly wrapper;
|
|
1078
|
+
constructor(ctx: Context<D>, wrapper: IconWrapper<D>);
|
|
1079
|
+
toHaveProp: <T extends keyof IconProps>(propName: T, value: IconProps[T]) => D["expectReturn"];
|
|
1080
|
+
toHaveName: (value: any) => D["expectReturn"];
|
|
1081
|
+
}
|
|
1082
|
+
type LayoutProps = {
|
|
1083
|
+
autoSizing: 'fit' | 'fill';
|
|
1084
|
+
columnBasis: 'small' | 'medium' | 'large' | 'block';
|
|
1085
|
+
columnSpacing: 'small' | 'medium' | 'large';
|
|
1086
|
+
gutters: 'small' | 'medium' | 'large';
|
|
1087
|
+
rowSpacing: 'small' | 'medium' | 'large';
|
|
1088
|
+
};
|
|
1089
|
+
export declare class LayoutWrapper<D extends DriverT> extends BaseWrapper<D, VwcLayoutElement> {
|
|
1090
|
+
type: "layout";
|
|
1091
|
+
componentInfo: {
|
|
1092
|
+
name: string;
|
|
1093
|
+
};
|
|
1094
|
+
hover: () => D["actionReturn"];
|
|
1095
|
+
focus: () => D["actionReturn"];
|
|
1096
|
+
blur: () => D["actionReturn"];
|
|
1097
|
+
}
|
|
1098
|
+
export declare class Layout<D extends DriverT> extends BaseComponent<D, LayoutWrapper<D>> {
|
|
1099
|
+
componentInfo: {
|
|
1100
|
+
name: string;
|
|
1101
|
+
};
|
|
1102
|
+
wrap(locator: D['locator']): LayoutWrapper<D>;
|
|
1103
|
+
byTestId: (id: string) => LayoutWrapper<D>;
|
|
1104
|
+
}
|
|
1105
|
+
export declare class LayoutExpectations<D extends DriverT> {
|
|
1106
|
+
private readonly ctx;
|
|
1107
|
+
private readonly wrapper;
|
|
1108
|
+
constructor(ctx: Context<D>, wrapper: LayoutWrapper<D>);
|
|
1109
|
+
toHaveProp: <T extends keyof LayoutProps>(propName: T, value: LayoutProps[T]) => D["expectReturn"];
|
|
1110
|
+
}
|
|
1111
|
+
type MenuProps = {
|
|
1112
|
+
anchor: string | HTMLElement;
|
|
1113
|
+
autoDismiss: boolean;
|
|
1114
|
+
offset: number;
|
|
1115
|
+
open: boolean;
|
|
1116
|
+
placement: 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
|
|
1117
|
+
positionStrategy: 'absolute' | 'fixed';
|
|
1118
|
+
trigger: 'auto' | 'legacy' | 'off';
|
|
1119
|
+
};
|
|
1120
|
+
export declare class MenuWrapper<D extends DriverT> extends BaseWrapper<D, VwcMenuElement> {
|
|
1121
|
+
type: "menu";
|
|
1122
|
+
componentInfo: {
|
|
1123
|
+
name: string;
|
|
1124
|
+
};
|
|
1125
|
+
hover: () => D["actionReturn"];
|
|
1126
|
+
focus: () => D["actionReturn"];
|
|
1127
|
+
blur: () => D["actionReturn"];
|
|
1128
|
+
}
|
|
1129
|
+
export declare class Menu<D extends DriverT> extends BaseComponent<D, MenuWrapper<D>> {
|
|
1130
|
+
componentInfo: {
|
|
1131
|
+
name: string;
|
|
1132
|
+
};
|
|
1133
|
+
wrap(locator: D['locator']): MenuWrapper<D>;
|
|
1134
|
+
byTestId: (id: string) => MenuWrapper<D>;
|
|
1135
|
+
byLabel: (label: string) => MenuWrapper<D>;
|
|
1136
|
+
}
|
|
1137
|
+
export declare class MenuExpectations<D extends DriverT> {
|
|
1138
|
+
private readonly ctx;
|
|
1139
|
+
private readonly wrapper;
|
|
1140
|
+
constructor(ctx: Context<D>, wrapper: MenuWrapper<D>);
|
|
1141
|
+
toHaveProp: <T extends keyof MenuProps>(propName: T, value: MenuProps[T]) => D["expectReturn"];
|
|
1142
|
+
toBeOpen: () => D["expectReturn"];
|
|
1143
|
+
toBeClosed: () => D["expectReturn"];
|
|
1144
|
+
}
|
|
1145
|
+
type MenuItemProps = {
|
|
1146
|
+
checkAppearance: 'normal' | 'tick-only';
|
|
1147
|
+
checkTrailing: boolean;
|
|
1148
|
+
checked: boolean;
|
|
1149
|
+
connotation: 'cta' | 'accent';
|
|
1150
|
+
controlType: 'checkbox' | 'radio';
|
|
1151
|
+
disabled: boolean;
|
|
1152
|
+
expanded: boolean;
|
|
1153
|
+
icon: IconId;
|
|
1154
|
+
text: string;
|
|
1155
|
+
textSecondary: string;
|
|
1156
|
+
};
|
|
1157
|
+
export declare class MenuItemWrapper<D extends DriverT> extends BaseWrapper<D, VwcMenuItemElement> {
|
|
1158
|
+
type: "menuItem";
|
|
1159
|
+
componentInfo: {
|
|
1160
|
+
name: string;
|
|
1161
|
+
};
|
|
1162
|
+
hover: () => D["actionReturn"];
|
|
1163
|
+
focus: () => D["actionReturn"];
|
|
1164
|
+
blur: () => D["actionReturn"];
|
|
1165
|
+
click: () => D["actionReturn"];
|
|
1166
|
+
}
|
|
1167
|
+
export declare class MenuItem<D extends DriverT> extends BaseComponent<D, MenuItemWrapper<D>> {
|
|
1168
|
+
componentInfo: {
|
|
1169
|
+
name: string;
|
|
1170
|
+
};
|
|
1171
|
+
wrap(locator: D['locator']): MenuItemWrapper<D>;
|
|
1172
|
+
byTestId: (id: string) => MenuItemWrapper<D>;
|
|
1173
|
+
byText: (text: string) => MenuItemWrapper<D>;
|
|
1174
|
+
}
|
|
1175
|
+
export declare class MenuItemExpectations<D extends DriverT> {
|
|
1176
|
+
private readonly ctx;
|
|
1177
|
+
private readonly wrapper;
|
|
1178
|
+
constructor(ctx: Context<D>, wrapper: MenuItemWrapper<D>);
|
|
1179
|
+
toHaveProp: <T extends keyof MenuItemProps>(propName: T, value: MenuItemProps[T]) => D["expectReturn"];
|
|
1180
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
1181
|
+
toBeChecked: () => D["expectReturn"];
|
|
1182
|
+
toBeUnchecked: () => D["expectReturn"];
|
|
1183
|
+
toHaveDisabled: (value: any) => D["expectReturn"];
|
|
1184
|
+
}
|
|
1185
|
+
export declare class NavWrapper<D extends DriverT> extends BaseWrapper<D, VwcNavElement> {
|
|
1186
|
+
type: "nav";
|
|
1187
|
+
componentInfo: {
|
|
1188
|
+
name: string;
|
|
1189
|
+
};
|
|
1190
|
+
hover: () => D["actionReturn"];
|
|
1191
|
+
focus: () => D["actionReturn"];
|
|
1192
|
+
blur: () => D["actionReturn"];
|
|
1193
|
+
}
|
|
1194
|
+
export declare class Nav<D extends DriverT> extends BaseComponent<D, NavWrapper<D>> {
|
|
1195
|
+
componentInfo: {
|
|
1196
|
+
name: string;
|
|
1197
|
+
};
|
|
1198
|
+
wrap(locator: D['locator']): NavWrapper<D>;
|
|
1199
|
+
byTestId: (id: string) => NavWrapper<D>;
|
|
1200
|
+
}
|
|
1201
|
+
export declare class NavExpectations<D extends DriverT> {
|
|
1202
|
+
private readonly ctx;
|
|
1203
|
+
private readonly wrapper;
|
|
1204
|
+
constructor(ctx: Context<D>, wrapper: NavWrapper<D>);
|
|
1205
|
+
toHaveProp: (propName: never, value: never) => never;
|
|
1206
|
+
}
|
|
1207
|
+
type NavDisclosureProps = {
|
|
1208
|
+
appearance: 'ghost' | 'ghost-light';
|
|
1209
|
+
connotation: 'accent' | 'cta';
|
|
1210
|
+
current: boolean;
|
|
1211
|
+
icon: IconId;
|
|
1212
|
+
label: string;
|
|
1213
|
+
open: boolean;
|
|
1214
|
+
};
|
|
1215
|
+
export declare class NavDisclosureWrapper<D extends DriverT> extends BaseWrapper<D, VwcNavDisclosureElement> {
|
|
1216
|
+
type: "navDisclosure";
|
|
1217
|
+
componentInfo: {
|
|
1218
|
+
name: string;
|
|
1219
|
+
};
|
|
1220
|
+
hover: () => D["actionReturn"];
|
|
1221
|
+
focus: () => D["actionReturn"];
|
|
1222
|
+
blur: () => D["actionReturn"];
|
|
1223
|
+
expand: () => D["actionReturn"];
|
|
1224
|
+
collapse: () => D["actionReturn"];
|
|
1225
|
+
}
|
|
1226
|
+
export declare class NavDisclosure<D extends DriverT> extends BaseComponent<D, NavDisclosureWrapper<D>> {
|
|
1227
|
+
componentInfo: {
|
|
1228
|
+
name: string;
|
|
1229
|
+
};
|
|
1230
|
+
wrap(locator: D['locator']): NavDisclosureWrapper<D>;
|
|
1231
|
+
byTestId: (id: string) => NavDisclosureWrapper<D>;
|
|
1232
|
+
byLabel: (label: string) => NavDisclosureWrapper<D>;
|
|
1233
|
+
}
|
|
1234
|
+
export declare class NavDisclosureExpectations<D extends DriverT> {
|
|
1235
|
+
private readonly ctx;
|
|
1236
|
+
private readonly wrapper;
|
|
1237
|
+
constructor(ctx: Context<D>, wrapper: NavDisclosureWrapper<D>);
|
|
1238
|
+
toHaveProp: <T extends keyof NavDisclosureProps>(propName: T, value: NavDisclosureProps[T]) => D["expectReturn"];
|
|
1239
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
1240
|
+
toBeCurrent: () => D["expectReturn"];
|
|
1241
|
+
notToBeCurrent: () => D["expectReturn"];
|
|
1242
|
+
toBeOpen: () => D["expectReturn"];
|
|
1243
|
+
toBeClosed: () => D["expectReturn"];
|
|
1244
|
+
}
|
|
1245
|
+
type NavItemProps = {
|
|
1246
|
+
appearance: 'ghost' | 'ghost-light';
|
|
1247
|
+
connotation: 'accent' | 'cta';
|
|
1248
|
+
current: boolean;
|
|
1249
|
+
download: string;
|
|
1250
|
+
href: string;
|
|
1251
|
+
hreflang: string;
|
|
1252
|
+
icon: IconId;
|
|
1253
|
+
ping: string;
|
|
1254
|
+
referrerpolicy: string;
|
|
1255
|
+
rel: string;
|
|
1256
|
+
target: '_self' | '_blank' | '_parent' | '_top';
|
|
1257
|
+
text: string;
|
|
1258
|
+
type: string;
|
|
1259
|
+
};
|
|
1260
|
+
export declare class NavItemWrapper<D extends DriverT> extends BaseWrapper<D, VwcNavItemElement> {
|
|
1261
|
+
type: "navItem";
|
|
1262
|
+
componentInfo: {
|
|
1263
|
+
name: string;
|
|
1264
|
+
};
|
|
1265
|
+
hover: () => D["actionReturn"];
|
|
1266
|
+
focus: () => D["actionReturn"];
|
|
1267
|
+
blur: () => D["actionReturn"];
|
|
1268
|
+
click: () => D["actionReturn"];
|
|
1269
|
+
}
|
|
1270
|
+
export declare class NavItem<D extends DriverT> extends BaseComponent<D, NavItemWrapper<D>> {
|
|
1271
|
+
componentInfo: {
|
|
1272
|
+
name: string;
|
|
1273
|
+
};
|
|
1274
|
+
wrap(locator: D['locator']): NavItemWrapper<D>;
|
|
1275
|
+
byTestId: (id: string) => NavItemWrapper<D>;
|
|
1276
|
+
byLabel: (label: string) => NavItemWrapper<D>;
|
|
1277
|
+
}
|
|
1278
|
+
export declare class NavItemExpectations<D extends DriverT> {
|
|
1279
|
+
private readonly ctx;
|
|
1280
|
+
private readonly wrapper;
|
|
1281
|
+
constructor(ctx: Context<D>, wrapper: NavItemWrapper<D>);
|
|
1282
|
+
toHaveProp: <T extends keyof NavItemProps>(propName: T, value: NavItemProps[T]) => D["expectReturn"];
|
|
1283
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
1284
|
+
toBeCurrent: () => D["expectReturn"];
|
|
1285
|
+
notToBeCurrent: () => D["expectReturn"];
|
|
1286
|
+
}
|
|
1287
|
+
type NoteProps = {
|
|
1288
|
+
connotation: 'accent' | 'information' | 'success' | 'warning' | 'announcement' | 'alert';
|
|
1289
|
+
headline: string;
|
|
1290
|
+
icon: IconId;
|
|
1291
|
+
};
|
|
1292
|
+
export declare class NoteWrapper<D extends DriverT> extends BaseWrapper<D, VwcNoteElement> {
|
|
1293
|
+
type: "note";
|
|
1294
|
+
componentInfo: {
|
|
1295
|
+
name: string;
|
|
1296
|
+
};
|
|
1297
|
+
hover: () => D["actionReturn"];
|
|
1298
|
+
focus: () => D["actionReturn"];
|
|
1299
|
+
blur: () => D["actionReturn"];
|
|
1300
|
+
}
|
|
1301
|
+
export declare class Note<D extends DriverT> extends BaseComponent<D, NoteWrapper<D>> {
|
|
1302
|
+
componentInfo: {
|
|
1303
|
+
name: string;
|
|
1304
|
+
};
|
|
1305
|
+
wrap(locator: D['locator']): NoteWrapper<D>;
|
|
1306
|
+
byTestId: (id: string) => NoteWrapper<D>;
|
|
1307
|
+
}
|
|
1308
|
+
export declare class NoteExpectations<D extends DriverT> {
|
|
1309
|
+
private readonly ctx;
|
|
1310
|
+
private readonly wrapper;
|
|
1311
|
+
constructor(ctx: Context<D>, wrapper: NoteWrapper<D>);
|
|
1312
|
+
toHaveProp: <T extends keyof NoteProps>(propName: T, value: NoteProps[T]) => D["expectReturn"];
|
|
1313
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
1314
|
+
}
|
|
1315
|
+
type NumberFieldProps = {
|
|
1316
|
+
appearance: 'fieldset' | 'ghost';
|
|
1317
|
+
autoComplete: string;
|
|
1318
|
+
autofocus: boolean;
|
|
1319
|
+
decrementButtonAriaLabel: string;
|
|
1320
|
+
disabled: boolean;
|
|
1321
|
+
errorText: string;
|
|
1322
|
+
helperText: string;
|
|
1323
|
+
icon: IconId;
|
|
1324
|
+
incrementButtonAriaLabel: string;
|
|
1325
|
+
initialValue: string;
|
|
1326
|
+
label: string;
|
|
1327
|
+
list: string;
|
|
1328
|
+
max: number;
|
|
1329
|
+
maxlength: number;
|
|
1330
|
+
min: number;
|
|
1331
|
+
minlength: number;
|
|
1332
|
+
name: string;
|
|
1333
|
+
placeholder: string;
|
|
1334
|
+
readonly: boolean;
|
|
1335
|
+
required: boolean;
|
|
1336
|
+
scale: 'condensed' | 'normal';
|
|
1337
|
+
shape: 'rounded' | 'pill';
|
|
1338
|
+
size: number;
|
|
1339
|
+
step: number;
|
|
1340
|
+
successText: string;
|
|
1341
|
+
value: string;
|
|
1342
|
+
valueAsNumber: number;
|
|
1343
|
+
};
|
|
1344
|
+
export declare class NumberFieldWrapper<D extends DriverT> extends BaseWrapper<D, VwcNumberFieldElement> {
|
|
1345
|
+
type: "numberField";
|
|
1346
|
+
componentInfo: {
|
|
1347
|
+
name: string;
|
|
1348
|
+
};
|
|
1349
|
+
hover: () => D["actionReturn"];
|
|
1350
|
+
focus: () => D["actionReturn"];
|
|
1351
|
+
blur: () => D["actionReturn"];
|
|
1352
|
+
fill: (text: string) => D["actionReturn"];
|
|
1353
|
+
clear: () => D["actionReturn"];
|
|
1354
|
+
clickIncrement: () => D["actionReturn"];
|
|
1355
|
+
clickDecrement: () => D["actionReturn"];
|
|
1356
|
+
}
|
|
1357
|
+
export declare class NumberField<D extends DriverT> extends BaseComponent<D, NumberFieldWrapper<D>> {
|
|
1358
|
+
componentInfo: {
|
|
1359
|
+
name: string;
|
|
1360
|
+
};
|
|
1361
|
+
wrap(locator: D['locator']): NumberFieldWrapper<D>;
|
|
1362
|
+
byTestId: (id: string) => NumberFieldWrapper<D>;
|
|
1363
|
+
byLabel: (label: string) => NumberFieldWrapper<D>;
|
|
1364
|
+
}
|
|
1365
|
+
export declare class NumberFieldExpectations<D extends DriverT> {
|
|
1366
|
+
private readonly ctx;
|
|
1367
|
+
private readonly wrapper;
|
|
1368
|
+
constructor(ctx: Context<D>, wrapper: NumberFieldWrapper<D>);
|
|
1369
|
+
toHaveProp: <T extends keyof NumberFieldProps>(propName: T, value: NumberFieldProps[T]) => D["expectReturn"];
|
|
1370
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
1371
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
1372
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
1373
|
+
toHaveValueAsNumber: (value: any) => D["expectReturn"];
|
|
1374
|
+
}
|
|
1375
|
+
type OptionProps = {
|
|
1376
|
+
checked: boolean;
|
|
1377
|
+
defaultSelected: boolean;
|
|
1378
|
+
disabled: boolean;
|
|
1379
|
+
icon: IconId;
|
|
1380
|
+
iconTrailing: boolean;
|
|
1381
|
+
label: string;
|
|
1382
|
+
matchedText: string;
|
|
1383
|
+
selected: boolean;
|
|
1384
|
+
tagConnotation: 'accent' | 'cta';
|
|
1385
|
+
text: string;
|
|
1386
|
+
textSecondary: string;
|
|
1387
|
+
value: string;
|
|
1388
|
+
};
|
|
1389
|
+
export declare class OptionWrapper<D extends DriverT> extends BaseWrapper<D, VwcOptionElement> {
|
|
1390
|
+
type: "option";
|
|
1391
|
+
componentInfo: {
|
|
1392
|
+
name: string;
|
|
1393
|
+
};
|
|
1394
|
+
hover: () => D["actionReturn"];
|
|
1395
|
+
focus: () => D["actionReturn"];
|
|
1396
|
+
blur: () => D["actionReturn"];
|
|
1397
|
+
click: () => D["actionReturn"];
|
|
1398
|
+
}
|
|
1399
|
+
export declare class Option<D extends DriverT> extends BaseComponent<D, OptionWrapper<D>> {
|
|
1400
|
+
componentInfo: {
|
|
1401
|
+
name: string;
|
|
1402
|
+
};
|
|
1403
|
+
wrap(locator: D['locator']): OptionWrapper<D>;
|
|
1404
|
+
byTestId: (id: string) => OptionWrapper<D>;
|
|
1405
|
+
}
|
|
1406
|
+
export declare class OptionExpectations<D extends DriverT> {
|
|
1407
|
+
private readonly ctx;
|
|
1408
|
+
private readonly wrapper;
|
|
1409
|
+
constructor(ctx: Context<D>, wrapper: OptionWrapper<D>);
|
|
1410
|
+
toHaveProp: <T extends keyof OptionProps>(propName: T, value: OptionProps[T]) => D["expectReturn"];
|
|
1411
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
1412
|
+
}
|
|
1413
|
+
type PaginationProps = {
|
|
1414
|
+
navIcons: boolean;
|
|
1415
|
+
selectedIndex: number;
|
|
1416
|
+
shape: 'rounded' | 'pill';
|
|
1417
|
+
size: 'super-condensed' | 'condensed' | 'normal';
|
|
1418
|
+
total: number;
|
|
1419
|
+
};
|
|
1420
|
+
export declare class PaginationWrapper<D extends DriverT> extends BaseWrapper<D, VwcPaginationElement> {
|
|
1421
|
+
type: "pagination";
|
|
1422
|
+
componentInfo: {
|
|
1423
|
+
name: string;
|
|
1424
|
+
};
|
|
1425
|
+
hover: () => D["actionReturn"];
|
|
1426
|
+
focus: () => D["actionReturn"];
|
|
1427
|
+
blur: () => D["actionReturn"];
|
|
1428
|
+
clickNext: () => D["actionReturn"];
|
|
1429
|
+
clickPrev: () => D["actionReturn"];
|
|
1430
|
+
clickPageIndex: (pageIndex: number) => D["actionReturn"];
|
|
1431
|
+
}
|
|
1432
|
+
export declare class Pagination<D extends DriverT> extends BaseComponent<D, PaginationWrapper<D>> {
|
|
1433
|
+
componentInfo: {
|
|
1434
|
+
name: string;
|
|
1435
|
+
};
|
|
1436
|
+
wrap(locator: D['locator']): PaginationWrapper<D>;
|
|
1437
|
+
byTestId: (id: string) => PaginationWrapper<D>;
|
|
1438
|
+
}
|
|
1439
|
+
export declare class PaginationExpectations<D extends DriverT> {
|
|
1440
|
+
private readonly ctx;
|
|
1441
|
+
private readonly wrapper;
|
|
1442
|
+
constructor(ctx: Context<D>, wrapper: PaginationWrapper<D>);
|
|
1443
|
+
toHaveProp: <T extends keyof PaginationProps>(propName: T, value: PaginationProps[T]) => D["expectReturn"];
|
|
1444
|
+
toHaveTotal: (value: any) => D["expectReturn"];
|
|
1445
|
+
toHaveSelectedPage: (value: any) => D["expectReturn"];
|
|
1446
|
+
}
|
|
1447
|
+
type ProgressProps = {
|
|
1448
|
+
connotation: 'accent' | 'success' | 'alert' | 'cta' | 'pacific';
|
|
1449
|
+
max: number;
|
|
1450
|
+
min: number;
|
|
1451
|
+
paused: boolean;
|
|
1452
|
+
reverse: boolean;
|
|
1453
|
+
shape: 'rounded' | 'sharp';
|
|
1454
|
+
value: number;
|
|
1455
|
+
};
|
|
1456
|
+
export declare class ProgressWrapper<D extends DriverT> extends BaseWrapper<D, VwcProgressElement> {
|
|
1457
|
+
type: "progress";
|
|
1458
|
+
componentInfo: {
|
|
1459
|
+
name: string;
|
|
1460
|
+
};
|
|
1461
|
+
hover: () => D["actionReturn"];
|
|
1462
|
+
focus: () => D["actionReturn"];
|
|
1463
|
+
blur: () => D["actionReturn"];
|
|
1464
|
+
}
|
|
1465
|
+
export declare class Progress<D extends DriverT> extends BaseComponent<D, ProgressWrapper<D>> {
|
|
1466
|
+
componentInfo: {
|
|
1467
|
+
name: string;
|
|
1468
|
+
};
|
|
1469
|
+
wrap(locator: D['locator']): ProgressWrapper<D>;
|
|
1470
|
+
byTestId: (id: string) => ProgressWrapper<D>;
|
|
1471
|
+
}
|
|
1472
|
+
export declare class ProgressExpectations<D extends DriverT> {
|
|
1473
|
+
private readonly ctx;
|
|
1474
|
+
private readonly wrapper;
|
|
1475
|
+
constructor(ctx: Context<D>, wrapper: ProgressWrapper<D>);
|
|
1476
|
+
toHaveProp: <T extends keyof ProgressProps>(propName: T, value: ProgressProps[T]) => D["expectReturn"];
|
|
1477
|
+
}
|
|
1478
|
+
type ProgressRingProps = {
|
|
1479
|
+
connotation: 'accent' | 'success' | 'alert' | 'cta';
|
|
1480
|
+
max: number;
|
|
1481
|
+
min: number;
|
|
1482
|
+
paused: boolean;
|
|
1483
|
+
size: -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5;
|
|
1484
|
+
value: number;
|
|
1485
|
+
};
|
|
1486
|
+
export declare class ProgressRingWrapper<D extends DriverT> extends BaseWrapper<D, VwcProgressRingElement> {
|
|
1487
|
+
type: "progressRing";
|
|
1488
|
+
componentInfo: {
|
|
1489
|
+
name: string;
|
|
1490
|
+
};
|
|
1491
|
+
hover: () => D["actionReturn"];
|
|
1492
|
+
focus: () => D["actionReturn"];
|
|
1493
|
+
blur: () => D["actionReturn"];
|
|
1494
|
+
}
|
|
1495
|
+
export declare class ProgressRing<D extends DriverT> extends BaseComponent<D, ProgressRingWrapper<D>> {
|
|
1496
|
+
componentInfo: {
|
|
1497
|
+
name: string;
|
|
1498
|
+
};
|
|
1499
|
+
wrap(locator: D['locator']): ProgressRingWrapper<D>;
|
|
1500
|
+
byTestId: (id: string) => ProgressRingWrapper<D>;
|
|
1501
|
+
}
|
|
1502
|
+
export declare class ProgressRingExpectations<D extends DriverT> {
|
|
1503
|
+
private readonly ctx;
|
|
1504
|
+
private readonly wrapper;
|
|
1505
|
+
constructor(ctx: Context<D>, wrapper: ProgressRingWrapper<D>);
|
|
1506
|
+
toHaveProp: <T extends keyof ProgressRingProps>(propName: T, value: ProgressRingProps[T]) => D["expectReturn"];
|
|
1507
|
+
}
|
|
1508
|
+
type RadioProps = {
|
|
1509
|
+
checked: boolean;
|
|
1510
|
+
connotation: 'accent' | 'cta';
|
|
1511
|
+
defaultChecked: boolean;
|
|
1512
|
+
disabled: boolean;
|
|
1513
|
+
errorText: string;
|
|
1514
|
+
initialValue: string;
|
|
1515
|
+
label: string;
|
|
1516
|
+
name: string;
|
|
1517
|
+
readonly: boolean;
|
|
1518
|
+
required: boolean;
|
|
1519
|
+
value: string;
|
|
1520
|
+
};
|
|
1521
|
+
export declare class RadioWrapper<D extends DriverT> extends BaseWrapper<D, VwcRadioElement> {
|
|
1522
|
+
type: "radio";
|
|
1523
|
+
componentInfo: {
|
|
1524
|
+
name: string;
|
|
1525
|
+
};
|
|
1526
|
+
hover: () => D["actionReturn"];
|
|
1527
|
+
focus: () => D["actionReturn"];
|
|
1528
|
+
blur: () => D["actionReturn"];
|
|
1529
|
+
check: () => D["actionReturn"];
|
|
1530
|
+
}
|
|
1531
|
+
export declare class Radio<D extends DriverT> extends BaseComponent<D, RadioWrapper<D>> {
|
|
1532
|
+
componentInfo: {
|
|
1533
|
+
name: string;
|
|
1534
|
+
};
|
|
1535
|
+
wrap(locator: D['locator']): RadioWrapper<D>;
|
|
1536
|
+
byTestId: (id: string) => RadioWrapper<D>;
|
|
1537
|
+
byLabel: (label: string) => RadioWrapper<D>;
|
|
1538
|
+
}
|
|
1539
|
+
export declare class RadioExpectations<D extends DriverT> {
|
|
1540
|
+
private readonly ctx;
|
|
1541
|
+
private readonly wrapper;
|
|
1542
|
+
constructor(ctx: Context<D>, wrapper: RadioWrapper<D>);
|
|
1543
|
+
toHaveProp: <T extends keyof RadioProps>(propName: T, value: RadioProps[T]) => D["expectReturn"];
|
|
1544
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
1545
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
1546
|
+
toBeChecked: () => D["expectReturn"];
|
|
1547
|
+
toBeUnchecked: () => D["expectReturn"];
|
|
1548
|
+
}
|
|
1549
|
+
type RadioGroupProps = {
|
|
1550
|
+
disabled: boolean;
|
|
1551
|
+
errorText: string;
|
|
1552
|
+
helperText: string;
|
|
1553
|
+
label: string;
|
|
1554
|
+
name: string;
|
|
1555
|
+
orientation: 'horizontal' | 'vertical' | 'horizontal' | 'vertical';
|
|
1556
|
+
readonly: boolean;
|
|
1557
|
+
required: boolean;
|
|
1558
|
+
value: string;
|
|
1559
|
+
};
|
|
1560
|
+
export declare class RadioGroupWrapper<D extends DriverT> extends BaseWrapper<D, VwcRadioGroupElement> {
|
|
1561
|
+
type: "radioGroup";
|
|
1562
|
+
componentInfo: {
|
|
1563
|
+
name: string;
|
|
1564
|
+
};
|
|
1565
|
+
hover: () => D["actionReturn"];
|
|
1566
|
+
focus: () => D["actionReturn"];
|
|
1567
|
+
blur: () => D["actionReturn"];
|
|
1568
|
+
}
|
|
1569
|
+
export declare class RadioGroup<D extends DriverT> extends BaseComponent<D, RadioGroupWrapper<D>> {
|
|
1570
|
+
componentInfo: {
|
|
1571
|
+
name: string;
|
|
1572
|
+
};
|
|
1573
|
+
wrap(locator: D['locator']): RadioGroupWrapper<D>;
|
|
1574
|
+
byTestId: (id: string) => RadioGroupWrapper<D>;
|
|
1575
|
+
}
|
|
1576
|
+
export declare class RadioGroupExpectations<D extends DriverT> {
|
|
1577
|
+
private readonly ctx;
|
|
1578
|
+
private readonly wrapper;
|
|
1579
|
+
constructor(ctx: Context<D>, wrapper: RadioGroupWrapper<D>);
|
|
1580
|
+
toHaveProp: <T extends keyof RadioGroupProps>(propName: T, value: RadioGroupProps[T]) => D["expectReturn"];
|
|
1581
|
+
}
|
|
1582
|
+
type RangeSliderProps = {
|
|
1583
|
+
ariaEndLabel: string;
|
|
1584
|
+
ariaStartLabel: string;
|
|
1585
|
+
connotation: 'accent' | 'cta';
|
|
1586
|
+
disabled: boolean;
|
|
1587
|
+
end: string;
|
|
1588
|
+
endAsNumber: number;
|
|
1589
|
+
initialEnd: string;
|
|
1590
|
+
initialStart: string;
|
|
1591
|
+
initialValue: string;
|
|
1592
|
+
label: string;
|
|
1593
|
+
markers: boolean;
|
|
1594
|
+
max: number;
|
|
1595
|
+
min: number;
|
|
1596
|
+
name: string;
|
|
1597
|
+
orientation: 'horizontal' | 'vertical';
|
|
1598
|
+
pin: boolean;
|
|
1599
|
+
required: boolean;
|
|
1600
|
+
start: string;
|
|
1601
|
+
startAsNumber: number;
|
|
1602
|
+
step: number;
|
|
1603
|
+
value: string;
|
|
1604
|
+
};
|
|
1605
|
+
export declare class RangeSliderWrapper<D extends DriverT> extends BaseWrapper<D, VwcRangeSliderElement> {
|
|
1606
|
+
type: "rangeSlider";
|
|
1607
|
+
componentInfo: {
|
|
1608
|
+
name: string;
|
|
1609
|
+
};
|
|
1610
|
+
hover: () => D["actionReturn"];
|
|
1611
|
+
focus: () => D["actionReturn"];
|
|
1612
|
+
blur: () => D["actionReturn"];
|
|
1613
|
+
slideStartTo: (value: number) => D["actionReturn"];
|
|
1614
|
+
slideEndTo: (value: number) => D["actionReturn"];
|
|
1615
|
+
}
|
|
1616
|
+
export declare class RangeSlider<D extends DriverT> extends BaseComponent<D, RangeSliderWrapper<D>> {
|
|
1617
|
+
componentInfo: {
|
|
1618
|
+
name: string;
|
|
1619
|
+
};
|
|
1620
|
+
wrap(locator: D['locator']): RangeSliderWrapper<D>;
|
|
1621
|
+
byTestId: (id: string) => RangeSliderWrapper<D>;
|
|
1622
|
+
byLabel: (label: string) => RangeSliderWrapper<D>;
|
|
1623
|
+
}
|
|
1624
|
+
export declare class RangeSliderExpectations<D extends DriverT> {
|
|
1625
|
+
private readonly ctx;
|
|
1626
|
+
private readonly wrapper;
|
|
1627
|
+
constructor(ctx: Context<D>, wrapper: RangeSliderWrapper<D>);
|
|
1628
|
+
toHaveProp: <T extends keyof RangeSliderProps>(propName: T, value: RangeSliderProps[T]) => D["expectReturn"];
|
|
1629
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
1630
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
1631
|
+
toHaveRange: (value: any) => D["expectReturn"];
|
|
1632
|
+
}
|
|
1633
|
+
type RichTextEditorProps = {
|
|
1634
|
+
placeholder: string;
|
|
1635
|
+
selectionEnd: number;
|
|
1636
|
+
selectionStart: number;
|
|
1637
|
+
};
|
|
1638
|
+
export declare class RichTextEditorWrapper<D extends DriverT> extends BaseWrapper<D, VwcRichTextEditorElement> {
|
|
1639
|
+
type: "richTextEditor";
|
|
1640
|
+
componentInfo: {
|
|
1641
|
+
name: string;
|
|
1642
|
+
};
|
|
1643
|
+
hover: () => D["actionReturn"];
|
|
1644
|
+
focus: () => D["actionReturn"];
|
|
1645
|
+
blur: () => D["actionReturn"];
|
|
1646
|
+
}
|
|
1647
|
+
export declare class RichTextEditor<D extends DriverT> extends BaseComponent<D, RichTextEditorWrapper<D>> {
|
|
1648
|
+
componentInfo: {
|
|
1649
|
+
name: string;
|
|
1650
|
+
};
|
|
1651
|
+
wrap(locator: D['locator']): RichTextEditorWrapper<D>;
|
|
1652
|
+
byTestId: (id: string) => RichTextEditorWrapper<D>;
|
|
1653
|
+
}
|
|
1654
|
+
export declare class RichTextEditorExpectations<D extends DriverT> {
|
|
1655
|
+
private readonly ctx;
|
|
1656
|
+
private readonly wrapper;
|
|
1657
|
+
constructor(ctx: Context<D>, wrapper: RichTextEditorWrapper<D>);
|
|
1658
|
+
toHaveProp: <T extends keyof RichTextEditorProps>(propName: T, value: RichTextEditorProps[T]) => D["expectReturn"];
|
|
1659
|
+
}
|
|
1660
|
+
type SearchableSelectProps = {
|
|
1661
|
+
appearance: 'fieldset' | 'ghost';
|
|
1662
|
+
clearable: boolean;
|
|
1663
|
+
disabled: boolean;
|
|
1664
|
+
errorText: string;
|
|
1665
|
+
externalTags: boolean;
|
|
1666
|
+
fixedDropdown: boolean;
|
|
1667
|
+
helperText: string;
|
|
1668
|
+
icon: IconId;
|
|
1669
|
+
iconTrailing: boolean;
|
|
1670
|
+
initialValue: string;
|
|
1671
|
+
label: string;
|
|
1672
|
+
loading: boolean;
|
|
1673
|
+
maxLines: number;
|
|
1674
|
+
maxSelected: number;
|
|
1675
|
+
multiple: boolean;
|
|
1676
|
+
name: string;
|
|
1677
|
+
open: boolean;
|
|
1678
|
+
optionFilter: any;
|
|
1679
|
+
placeholder: string;
|
|
1680
|
+
required: boolean;
|
|
1681
|
+
shape: 'rounded' | 'pill';
|
|
1682
|
+
successText: string;
|
|
1683
|
+
value: string;
|
|
1684
|
+
values: string[];
|
|
1685
|
+
};
|
|
1686
|
+
export declare class SearchableSelectWrapper<D extends DriverT> extends BaseWrapper<D, VwcSearchableSelectElement> {
|
|
1687
|
+
type: "searchableSelect";
|
|
1688
|
+
componentInfo: {
|
|
1689
|
+
name: string;
|
|
1690
|
+
};
|
|
1691
|
+
hover: () => D["actionReturn"];
|
|
1692
|
+
focus: () => D["actionReturn"];
|
|
1693
|
+
blur: () => D["actionReturn"];
|
|
1694
|
+
selectOptionByValue: (value: string) => D["actionReturn"];
|
|
1695
|
+
selectOptionByText: (text: string) => D["actionReturn"];
|
|
1696
|
+
}
|
|
1697
|
+
export declare class SearchableSelect<D extends DriverT> extends BaseComponent<D, SearchableSelectWrapper<D>> {
|
|
1698
|
+
componentInfo: {
|
|
1699
|
+
name: string;
|
|
1700
|
+
};
|
|
1701
|
+
wrap(locator: D['locator']): SearchableSelectWrapper<D>;
|
|
1702
|
+
byTestId: (id: string) => SearchableSelectWrapper<D>;
|
|
1703
|
+
byLabel: (label: string) => SearchableSelectWrapper<D>;
|
|
1704
|
+
}
|
|
1705
|
+
export declare class SearchableSelectExpectations<D extends DriverT> {
|
|
1706
|
+
private readonly ctx;
|
|
1707
|
+
private readonly wrapper;
|
|
1708
|
+
constructor(ctx: Context<D>, wrapper: SearchableSelectWrapper<D>);
|
|
1709
|
+
toHaveProp: <T extends keyof SearchableSelectProps>(propName: T, value: SearchableSelectProps[T]) => D["expectReturn"];
|
|
1710
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
1711
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
1712
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
1713
|
+
toHaveValues: (value: any) => D["expectReturn"];
|
|
1714
|
+
toHaveSelectedOptions: (value: any) => D["expectReturn"];
|
|
1715
|
+
}
|
|
1716
|
+
type SelectProps = {
|
|
1717
|
+
appearance: 'fieldset' | 'ghost';
|
|
1718
|
+
disabled: boolean;
|
|
1719
|
+
errorText: string;
|
|
1720
|
+
fixedDropdown: boolean;
|
|
1721
|
+
helperText: string;
|
|
1722
|
+
icon: IconId;
|
|
1723
|
+
iconTrailing: boolean;
|
|
1724
|
+
initialValue: string;
|
|
1725
|
+
label: string;
|
|
1726
|
+
multiple: boolean;
|
|
1727
|
+
name: string;
|
|
1728
|
+
open: boolean;
|
|
1729
|
+
placeholder: string;
|
|
1730
|
+
required: boolean;
|
|
1731
|
+
scale: 'condensed' | 'normal';
|
|
1732
|
+
shape: 'rounded' | 'pill';
|
|
1733
|
+
successText: string;
|
|
1734
|
+
value: string;
|
|
1735
|
+
};
|
|
1736
|
+
export declare class SelectWrapper<D extends DriverT> extends BaseWrapper<D, VwcSelectElement> {
|
|
1737
|
+
type: "select";
|
|
1738
|
+
componentInfo: {
|
|
1739
|
+
name: string;
|
|
1740
|
+
};
|
|
1741
|
+
hover: () => D["actionReturn"];
|
|
1742
|
+
focus: () => D["actionReturn"];
|
|
1743
|
+
blur: () => D["actionReturn"];
|
|
1744
|
+
selectOptionByValue: (value: string) => D["actionReturn"];
|
|
1745
|
+
selectOptionByText: (text: string) => D["actionReturn"];
|
|
1746
|
+
}
|
|
1747
|
+
export declare class Select<D extends DriverT> extends BaseComponent<D, SelectWrapper<D>> {
|
|
1748
|
+
componentInfo: {
|
|
1749
|
+
name: string;
|
|
1750
|
+
};
|
|
1751
|
+
wrap(locator: D['locator']): SelectWrapper<D>;
|
|
1752
|
+
byTestId: (id: string) => SelectWrapper<D>;
|
|
1753
|
+
byLabel: (label: string) => SelectWrapper<D>;
|
|
1754
|
+
}
|
|
1755
|
+
export declare class SelectExpectations<D extends DriverT> {
|
|
1756
|
+
private readonly ctx;
|
|
1757
|
+
private readonly wrapper;
|
|
1758
|
+
constructor(ctx: Context<D>, wrapper: SelectWrapper<D>);
|
|
1759
|
+
toHaveProp: <T extends keyof SelectProps>(propName: T, value: SelectProps[T]) => D["expectReturn"];
|
|
1760
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
1761
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
1762
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
1763
|
+
}
|
|
1764
|
+
type SelectableBoxProps = {
|
|
1765
|
+
checked: boolean;
|
|
1766
|
+
clickableBox: boolean;
|
|
1767
|
+
connotation: 'accent' | 'cta';
|
|
1768
|
+
controlPlacement: 'start' | 'start-stacked' | 'end' | 'end-stacked';
|
|
1769
|
+
controlType: 'checkbox' | 'radio';
|
|
1770
|
+
tight: boolean;
|
|
1771
|
+
};
|
|
1772
|
+
export declare class SelectableBoxWrapper<D extends DriverT> extends BaseWrapper<D, VwcSelectableBoxElement> {
|
|
1773
|
+
type: "selectableBox";
|
|
1774
|
+
componentInfo: {
|
|
1775
|
+
name: string;
|
|
1776
|
+
};
|
|
1777
|
+
hover: () => D["actionReturn"];
|
|
1778
|
+
focus: () => D["actionReturn"];
|
|
1779
|
+
blur: () => D["actionReturn"];
|
|
1780
|
+
check: () => D["actionReturn"];
|
|
1781
|
+
uncheck: () => D["actionReturn"];
|
|
1782
|
+
}
|
|
1783
|
+
export declare class SelectableBox<D extends DriverT> extends BaseComponent<D, SelectableBoxWrapper<D>> {
|
|
1784
|
+
componentInfo: {
|
|
1785
|
+
name: string;
|
|
1786
|
+
};
|
|
1787
|
+
wrap(locator: D['locator']): SelectableBoxWrapper<D>;
|
|
1788
|
+
byTestId: (id: string) => SelectableBoxWrapper<D>;
|
|
1789
|
+
}
|
|
1790
|
+
export declare class SelectableBoxExpectations<D extends DriverT> {
|
|
1791
|
+
private readonly ctx;
|
|
1792
|
+
private readonly wrapper;
|
|
1793
|
+
constructor(ctx: Context<D>, wrapper: SelectableBoxWrapper<D>);
|
|
1794
|
+
toHaveProp: <T extends keyof SelectableBoxProps>(propName: T, value: SelectableBoxProps[T]) => D["expectReturn"];
|
|
1795
|
+
toBeChecked: () => D["expectReturn"];
|
|
1796
|
+
toBeUnchecked: () => D["expectReturn"];
|
|
1797
|
+
}
|
|
1798
|
+
type SideDrawerProps = {
|
|
1799
|
+
alternate: boolean;
|
|
1800
|
+
modal: boolean;
|
|
1801
|
+
open: boolean;
|
|
1802
|
+
trailing: boolean;
|
|
1803
|
+
};
|
|
1804
|
+
export declare class SideDrawerWrapper<D extends DriverT> extends BaseWrapper<D, VwcSideDrawerElement> {
|
|
1805
|
+
type: "sideDrawer";
|
|
1806
|
+
componentInfo: {
|
|
1807
|
+
name: string;
|
|
1808
|
+
};
|
|
1809
|
+
hover: () => D["actionReturn"];
|
|
1810
|
+
focus: () => D["actionReturn"];
|
|
1811
|
+
blur: () => D["actionReturn"];
|
|
1812
|
+
}
|
|
1813
|
+
export declare class SideDrawer<D extends DriverT> extends BaseComponent<D, SideDrawerWrapper<D>> {
|
|
1814
|
+
componentInfo: {
|
|
1815
|
+
name: string;
|
|
1816
|
+
};
|
|
1817
|
+
wrap(locator: D['locator']): SideDrawerWrapper<D>;
|
|
1818
|
+
byTestId: (id: string) => SideDrawerWrapper<D>;
|
|
1819
|
+
}
|
|
1820
|
+
export declare class SideDrawerExpectations<D extends DriverT> {
|
|
1821
|
+
private readonly ctx;
|
|
1822
|
+
private readonly wrapper;
|
|
1823
|
+
constructor(ctx: Context<D>, wrapper: SideDrawerWrapper<D>);
|
|
1824
|
+
toHaveProp: <T extends keyof SideDrawerProps>(propName: T, value: SideDrawerProps[T]) => D["expectReturn"];
|
|
1825
|
+
}
|
|
1826
|
+
type SimpleColorPickerProps = {
|
|
1827
|
+
anchor: string | HTMLElement;
|
|
1828
|
+
disabled: boolean;
|
|
1829
|
+
initialValue: string;
|
|
1830
|
+
label: string;
|
|
1831
|
+
name: string;
|
|
1832
|
+
open: boolean;
|
|
1833
|
+
placement: 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
|
|
1834
|
+
required: boolean;
|
|
1835
|
+
swatchesPerRow: number;
|
|
1836
|
+
value: string;
|
|
1837
|
+
};
|
|
1838
|
+
export declare class SimpleColorPickerWrapper<D extends DriverT> extends BaseWrapper<D, VwcSimpleColorPickerElement> {
|
|
1839
|
+
type: "simpleColorPicker";
|
|
1840
|
+
componentInfo: {
|
|
1841
|
+
name: string;
|
|
1842
|
+
};
|
|
1843
|
+
hover: () => D["actionReturn"];
|
|
1844
|
+
focus: () => D["actionReturn"];
|
|
1845
|
+
blur: () => D["actionReturn"];
|
|
1846
|
+
}
|
|
1847
|
+
export declare class SimpleColorPicker<D extends DriverT> extends BaseComponent<D, SimpleColorPickerWrapper<D>> {
|
|
1848
|
+
componentInfo: {
|
|
1849
|
+
name: string;
|
|
1850
|
+
};
|
|
1851
|
+
wrap(locator: D['locator']): SimpleColorPickerWrapper<D>;
|
|
1852
|
+
byTestId: (id: string) => SimpleColorPickerWrapper<D>;
|
|
1853
|
+
byLabel: (label: string) => SimpleColorPickerWrapper<D>;
|
|
1854
|
+
}
|
|
1855
|
+
export declare class SimpleColorPickerExpectations<D extends DriverT> {
|
|
1856
|
+
private readonly ctx;
|
|
1857
|
+
private readonly wrapper;
|
|
1858
|
+
constructor(ctx: Context<D>, wrapper: SimpleColorPickerWrapper<D>);
|
|
1859
|
+
toHaveProp: <T extends keyof SimpleColorPickerProps>(propName: T, value: SimpleColorPickerProps[T]) => D["expectReturn"];
|
|
1860
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
1861
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
1862
|
+
}
|
|
1863
|
+
type SliderProps = {
|
|
1864
|
+
connotation: 'accent' | 'cta';
|
|
1865
|
+
disabled: boolean;
|
|
1866
|
+
initialValue: string;
|
|
1867
|
+
markers: boolean;
|
|
1868
|
+
max: number;
|
|
1869
|
+
min: number;
|
|
1870
|
+
mode: 'single-value';
|
|
1871
|
+
name: string;
|
|
1872
|
+
orientation: 'horizontal' | 'vertical';
|
|
1873
|
+
pin: boolean;
|
|
1874
|
+
readonly: boolean;
|
|
1875
|
+
required: boolean;
|
|
1876
|
+
step: number;
|
|
1877
|
+
value: string;
|
|
1878
|
+
valueAsNumber: number;
|
|
1879
|
+
};
|
|
1880
|
+
export declare class SliderWrapper<D extends DriverT> extends BaseWrapper<D, VwcSliderElement> {
|
|
1881
|
+
type: "slider";
|
|
1882
|
+
componentInfo: {
|
|
1883
|
+
name: string;
|
|
1884
|
+
};
|
|
1885
|
+
hover: () => D["actionReturn"];
|
|
1886
|
+
focus: () => D["actionReturn"];
|
|
1887
|
+
blur: () => D["actionReturn"];
|
|
1888
|
+
slideTo: (value: number) => D["actionReturn"];
|
|
1889
|
+
}
|
|
1890
|
+
export declare class Slider<D extends DriverT> extends BaseComponent<D, SliderWrapper<D>> {
|
|
1891
|
+
componentInfo: {
|
|
1892
|
+
name: string;
|
|
1893
|
+
};
|
|
1894
|
+
wrap(locator: D['locator']): SliderWrapper<D>;
|
|
1895
|
+
byTestId: (id: string) => SliderWrapper<D>;
|
|
1896
|
+
byLabel: (label: string) => SliderWrapper<D>;
|
|
1897
|
+
}
|
|
1898
|
+
export declare class SliderExpectations<D extends DriverT> {
|
|
1899
|
+
private readonly ctx;
|
|
1900
|
+
private readonly wrapper;
|
|
1901
|
+
constructor(ctx: Context<D>, wrapper: SliderWrapper<D>);
|
|
1902
|
+
toHaveProp: <T extends keyof SliderProps>(propName: T, value: SliderProps[T]) => D["expectReturn"];
|
|
1903
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
1904
|
+
toHaveValueAsNumber: (value: any) => D["expectReturn"];
|
|
1905
|
+
}
|
|
1906
|
+
type SplitButtonProps = {
|
|
1907
|
+
appearance: 'filled' | 'outlined' | 'ghost' | 'outlined-light';
|
|
1908
|
+
connotation: 'accent' | 'announcement' | 'cta' | 'success' | 'alert';
|
|
1909
|
+
disabled: boolean;
|
|
1910
|
+
icon: IconId;
|
|
1911
|
+
indicatorAriaLabel: string;
|
|
1912
|
+
label: string;
|
|
1913
|
+
shape: 'rounded' | 'pill';
|
|
1914
|
+
size: 'super-condensed' | 'condensed' | 'normal' | 'expanded';
|
|
1915
|
+
splitIndicator: string;
|
|
1916
|
+
};
|
|
1917
|
+
export declare class SplitButtonWrapper<D extends DriverT> extends BaseWrapper<D, VwcSplitButtonElement> {
|
|
1918
|
+
type: "splitButton";
|
|
1919
|
+
componentInfo: {
|
|
1920
|
+
name: string;
|
|
1921
|
+
};
|
|
1922
|
+
hover: () => D["actionReturn"];
|
|
1923
|
+
focus: () => D["actionReturn"];
|
|
1924
|
+
blur: () => D["actionReturn"];
|
|
1925
|
+
clickAction: () => D["actionReturn"];
|
|
1926
|
+
clickIndicator: () => D["actionReturn"];
|
|
1927
|
+
}
|
|
1928
|
+
export declare class SplitButton<D extends DriverT> extends BaseComponent<D, SplitButtonWrapper<D>> {
|
|
1929
|
+
componentInfo: {
|
|
1930
|
+
name: string;
|
|
1931
|
+
};
|
|
1932
|
+
wrap(locator: D['locator']): SplitButtonWrapper<D>;
|
|
1933
|
+
byTestId: (id: string) => SplitButtonWrapper<D>;
|
|
1934
|
+
byLabel: (label: string) => SplitButtonWrapper<D>;
|
|
1935
|
+
}
|
|
1936
|
+
export declare class SplitButtonExpectations<D extends DriverT> {
|
|
1937
|
+
private readonly ctx;
|
|
1938
|
+
private readonly wrapper;
|
|
1939
|
+
constructor(ctx: Context<D>, wrapper: SplitButtonWrapper<D>);
|
|
1940
|
+
toHaveProp: <T extends keyof SplitButtonProps>(propName: T, value: SplitButtonProps[T]) => D["expectReturn"];
|
|
1941
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
1942
|
+
}
|
|
1943
|
+
type SwitchProps = {
|
|
1944
|
+
checked: boolean;
|
|
1945
|
+
connotation: 'accent' | 'alert' | 'announcement' | 'success' | 'cta';
|
|
1946
|
+
defaultChecked: boolean;
|
|
1947
|
+
disabled: boolean;
|
|
1948
|
+
initialValue: string;
|
|
1949
|
+
label: string;
|
|
1950
|
+
name: string;
|
|
1951
|
+
readonly: boolean;
|
|
1952
|
+
required: boolean;
|
|
1953
|
+
value: string;
|
|
1954
|
+
};
|
|
1955
|
+
export declare class SwitchWrapper<D extends DriverT> extends BaseWrapper<D, VwcSwitchElement> {
|
|
1956
|
+
type: "switch";
|
|
1957
|
+
componentInfo: {
|
|
1958
|
+
name: string;
|
|
1959
|
+
};
|
|
1960
|
+
hover: () => D["actionReturn"];
|
|
1961
|
+
focus: () => D["actionReturn"];
|
|
1962
|
+
blur: () => D["actionReturn"];
|
|
1963
|
+
check: () => D["actionReturn"];
|
|
1964
|
+
uncheck: () => D["actionReturn"];
|
|
1965
|
+
}
|
|
1966
|
+
export declare class Switch<D extends DriverT> extends BaseComponent<D, SwitchWrapper<D>> {
|
|
1967
|
+
componentInfo: {
|
|
1968
|
+
name: string;
|
|
1969
|
+
};
|
|
1970
|
+
wrap(locator: D['locator']): SwitchWrapper<D>;
|
|
1971
|
+
byTestId: (id: string) => SwitchWrapper<D>;
|
|
1972
|
+
byLabel: (label: string) => SwitchWrapper<D>;
|
|
1973
|
+
}
|
|
1974
|
+
export declare class SwitchExpectations<D extends DriverT> {
|
|
1975
|
+
private readonly ctx;
|
|
1976
|
+
private readonly wrapper;
|
|
1977
|
+
constructor(ctx: Context<D>, wrapper: SwitchWrapper<D>);
|
|
1978
|
+
toHaveProp: <T extends keyof SwitchProps>(propName: T, value: SwitchProps[T]) => D["expectReturn"];
|
|
1979
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
1980
|
+
toBeChecked: () => D["expectReturn"];
|
|
1981
|
+
toBeUnchecked: () => D["expectReturn"];
|
|
1982
|
+
}
|
|
1983
|
+
type TabProps = {
|
|
1984
|
+
connotation: 'accent' | 'cta';
|
|
1985
|
+
disabled: boolean;
|
|
1986
|
+
icon: IconId;
|
|
1987
|
+
iconTrailing: boolean;
|
|
1988
|
+
label: string;
|
|
1989
|
+
removable: boolean;
|
|
1990
|
+
shape: 'rounded' | 'sharp';
|
|
1991
|
+
tabIndex: number;
|
|
1992
|
+
};
|
|
1993
|
+
export declare class TabWrapper<D extends DriverT> extends BaseWrapper<D, VwcTabElement> {
|
|
1994
|
+
type: "tab";
|
|
1995
|
+
componentInfo: {
|
|
1996
|
+
name: string;
|
|
1997
|
+
};
|
|
1998
|
+
hover: () => D["actionReturn"];
|
|
1999
|
+
focus: () => D["actionReturn"];
|
|
2000
|
+
blur: () => D["actionReturn"];
|
|
2001
|
+
select: () => D["actionReturn"];
|
|
2002
|
+
}
|
|
2003
|
+
export declare class Tab<D extends DriverT> extends BaseComponent<D, TabWrapper<D>> {
|
|
2004
|
+
componentInfo: {
|
|
2005
|
+
name: string;
|
|
2006
|
+
};
|
|
2007
|
+
wrap(locator: D['locator']): TabWrapper<D>;
|
|
2008
|
+
byTestId: (id: string) => TabWrapper<D>;
|
|
2009
|
+
byLabel: (label: string) => TabWrapper<D>;
|
|
2010
|
+
}
|
|
2011
|
+
export declare class TabExpectations<D extends DriverT> {
|
|
2012
|
+
private readonly ctx;
|
|
2013
|
+
private readonly wrapper;
|
|
2014
|
+
constructor(ctx: Context<D>, wrapper: TabWrapper<D>);
|
|
2015
|
+
toHaveProp: <T extends keyof TabProps>(propName: T, value: TabProps[T]) => D["expectReturn"];
|
|
2016
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
2017
|
+
toBeActive: () => D["expectReturn"];
|
|
2018
|
+
toBeInactive: () => D["expectReturn"];
|
|
2019
|
+
}
|
|
2020
|
+
export declare class TabPanelWrapper<D extends DriverT> extends BaseWrapper<D, VwcTabPanelElement> {
|
|
2021
|
+
type: "tabPanel";
|
|
2022
|
+
componentInfo: {
|
|
2023
|
+
name: string;
|
|
2024
|
+
};
|
|
2025
|
+
hover: () => D["actionReturn"];
|
|
2026
|
+
focus: () => D["actionReturn"];
|
|
2027
|
+
blur: () => D["actionReturn"];
|
|
2028
|
+
}
|
|
2029
|
+
export declare class TabPanel<D extends DriverT> extends BaseComponent<D, TabPanelWrapper<D>> {
|
|
2030
|
+
componentInfo: {
|
|
2031
|
+
name: string;
|
|
2032
|
+
};
|
|
2033
|
+
wrap(locator: D['locator']): TabPanelWrapper<D>;
|
|
2034
|
+
byTestId: (id: string) => TabPanelWrapper<D>;
|
|
2035
|
+
}
|
|
2036
|
+
export declare class TabPanelExpectations<D extends DriverT> {
|
|
2037
|
+
private readonly ctx;
|
|
2038
|
+
private readonly wrapper;
|
|
2039
|
+
constructor(ctx: Context<D>, wrapper: TabPanelWrapper<D>);
|
|
2040
|
+
toHaveProp: (propName: never, value: never) => never;
|
|
2041
|
+
}
|
|
2042
|
+
type TabsProps = {
|
|
2043
|
+
activeid: string;
|
|
2044
|
+
activeindicator: boolean;
|
|
2045
|
+
connotation: 'accent' | 'cta';
|
|
2046
|
+
gutters: 'none' | 'small';
|
|
2047
|
+
orientation: 'vertical' | 'horizontal';
|
|
2048
|
+
scrollablePanel: boolean;
|
|
2049
|
+
tabsLayout: 'align-start' | 'stretch';
|
|
2050
|
+
};
|
|
2051
|
+
export declare class TabsWrapper<D extends DriverT> extends BaseWrapper<D, VwcTabsElement> {
|
|
2052
|
+
type: "tabs";
|
|
2053
|
+
componentInfo: {
|
|
2054
|
+
name: string;
|
|
2055
|
+
};
|
|
2056
|
+
hover: () => D["actionReturn"];
|
|
2057
|
+
focus: () => D["actionReturn"];
|
|
2058
|
+
blur: () => D["actionReturn"];
|
|
2059
|
+
}
|
|
2060
|
+
export declare class Tabs<D extends DriverT> extends BaseComponent<D, TabsWrapper<D>> {
|
|
2061
|
+
componentInfo: {
|
|
2062
|
+
name: string;
|
|
2063
|
+
};
|
|
2064
|
+
wrap(locator: D['locator']): TabsWrapper<D>;
|
|
2065
|
+
byTestId: (id: string) => TabsWrapper<D>;
|
|
2066
|
+
}
|
|
2067
|
+
export declare class TabsExpectations<D extends DriverT> {
|
|
2068
|
+
private readonly ctx;
|
|
2069
|
+
private readonly wrapper;
|
|
2070
|
+
constructor(ctx: Context<D>, wrapper: TabsWrapper<D>);
|
|
2071
|
+
toHaveProp: <T extends keyof TabsProps>(propName: T, value: TabsProps[T]) => D["expectReturn"];
|
|
2072
|
+
}
|
|
2073
|
+
type TagProps = {
|
|
2074
|
+
appearance: 'subtle' | 'duotone' | 'subtle-light';
|
|
2075
|
+
connotation: 'accent' | 'cta';
|
|
2076
|
+
disabled: boolean;
|
|
2077
|
+
icon: IconId;
|
|
2078
|
+
label: string;
|
|
2079
|
+
removable: boolean;
|
|
2080
|
+
selectable: boolean;
|
|
2081
|
+
selected: boolean;
|
|
2082
|
+
shape: 'rounded' | 'pill';
|
|
2083
|
+
};
|
|
2084
|
+
export declare class TagWrapper<D extends DriverT> extends BaseWrapper<D, VwcTagElement> {
|
|
2085
|
+
type: "tag";
|
|
2086
|
+
componentInfo: {
|
|
2087
|
+
name: string;
|
|
2088
|
+
};
|
|
2089
|
+
hover: () => D["actionReturn"];
|
|
2090
|
+
focus: () => D["actionReturn"];
|
|
2091
|
+
blur: () => D["actionReturn"];
|
|
2092
|
+
click: () => D["actionReturn"];
|
|
2093
|
+
remove: () => D["actionReturn"];
|
|
2094
|
+
select: () => D["actionReturn"];
|
|
2095
|
+
unselect: () => D["actionReturn"];
|
|
2096
|
+
}
|
|
2097
|
+
export declare class Tag<D extends DriverT> extends BaseComponent<D, TagWrapper<D>> {
|
|
2098
|
+
componentInfo: {
|
|
2099
|
+
name: string;
|
|
2100
|
+
};
|
|
2101
|
+
wrap(locator: D['locator']): TagWrapper<D>;
|
|
2102
|
+
byTestId: (id: string) => TagWrapper<D>;
|
|
2103
|
+
byLabel: (label: string) => TagWrapper<D>;
|
|
2104
|
+
}
|
|
2105
|
+
export declare class TagExpectations<D extends DriverT> {
|
|
2106
|
+
private readonly ctx;
|
|
2107
|
+
private readonly wrapper;
|
|
2108
|
+
constructor(ctx: Context<D>, wrapper: TagWrapper<D>);
|
|
2109
|
+
toHaveProp: <T extends keyof TagProps>(propName: T, value: TagProps[T]) => D["expectReturn"];
|
|
2110
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
2111
|
+
toBeSelected: () => D["expectReturn"];
|
|
2112
|
+
toBeUnselected: () => D["expectReturn"];
|
|
2113
|
+
toBeDisabled: () => D["expectReturn"];
|
|
2114
|
+
notToBeDisabled: () => D["expectReturn"];
|
|
2115
|
+
}
|
|
2116
|
+
export declare class TagGroupWrapper<D extends DriverT> extends BaseWrapper<D, VwcTagGroupElement> {
|
|
2117
|
+
type: "tagGroup";
|
|
2118
|
+
componentInfo: {
|
|
2119
|
+
name: string;
|
|
2120
|
+
};
|
|
2121
|
+
hover: () => D["actionReturn"];
|
|
2122
|
+
focus: () => D["actionReturn"];
|
|
2123
|
+
blur: () => D["actionReturn"];
|
|
2124
|
+
}
|
|
2125
|
+
export declare class TagGroup<D extends DriverT> extends BaseComponent<D, TagGroupWrapper<D>> {
|
|
2126
|
+
componentInfo: {
|
|
2127
|
+
name: string;
|
|
2128
|
+
};
|
|
2129
|
+
wrap(locator: D['locator']): TagGroupWrapper<D>;
|
|
2130
|
+
byTestId: (id: string) => TagGroupWrapper<D>;
|
|
2131
|
+
}
|
|
2132
|
+
export declare class TagGroupExpectations<D extends DriverT> {
|
|
2133
|
+
private readonly ctx;
|
|
2134
|
+
private readonly wrapper;
|
|
2135
|
+
constructor(ctx: Context<D>, wrapper: TagGroupWrapper<D>);
|
|
2136
|
+
toHaveProp: (propName: never, value: never) => never;
|
|
2137
|
+
}
|
|
2138
|
+
type TextAreaProps = {
|
|
2139
|
+
autofocus: boolean;
|
|
2140
|
+
charCount: boolean;
|
|
2141
|
+
cols: number;
|
|
2142
|
+
disabled: boolean;
|
|
2143
|
+
errorText: string;
|
|
2144
|
+
form: string;
|
|
2145
|
+
helperText: string;
|
|
2146
|
+
initialValue: string;
|
|
2147
|
+
label: string;
|
|
2148
|
+
list: string;
|
|
2149
|
+
maxlength: number;
|
|
2150
|
+
minlength: number;
|
|
2151
|
+
name: string;
|
|
2152
|
+
placeholder: string;
|
|
2153
|
+
readOnly: boolean;
|
|
2154
|
+
required: boolean;
|
|
2155
|
+
resize: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
2156
|
+
rows: number;
|
|
2157
|
+
spellcheck: boolean;
|
|
2158
|
+
successText: string;
|
|
2159
|
+
value: string;
|
|
2160
|
+
wrap: 'hard' | 'soft' | 'off';
|
|
2161
|
+
};
|
|
2162
|
+
export declare class TextAreaWrapper<D extends DriverT> extends BaseWrapper<D, VwcTextAreaElement> {
|
|
2163
|
+
type: "textArea";
|
|
2164
|
+
componentInfo: {
|
|
2165
|
+
name: string;
|
|
2166
|
+
};
|
|
2167
|
+
hover: () => D["actionReturn"];
|
|
2168
|
+
focus: () => D["actionReturn"];
|
|
2169
|
+
blur: () => D["actionReturn"];
|
|
2170
|
+
fill: (text: string) => D["actionReturn"];
|
|
2171
|
+
clear: () => D["actionReturn"];
|
|
2172
|
+
}
|
|
2173
|
+
export declare class TextArea<D extends DriverT> extends BaseComponent<D, TextAreaWrapper<D>> {
|
|
2174
|
+
componentInfo: {
|
|
2175
|
+
name: string;
|
|
2176
|
+
};
|
|
2177
|
+
wrap(locator: D['locator']): TextAreaWrapper<D>;
|
|
2178
|
+
byTestId: (id: string) => TextAreaWrapper<D>;
|
|
2179
|
+
byLabel: (label: string) => TextAreaWrapper<D>;
|
|
2180
|
+
}
|
|
2181
|
+
export declare class TextAreaExpectations<D extends DriverT> {
|
|
2182
|
+
private readonly ctx;
|
|
2183
|
+
private readonly wrapper;
|
|
2184
|
+
constructor(ctx: Context<D>, wrapper: TextAreaWrapper<D>);
|
|
2185
|
+
toHaveProp: <T extends keyof TextAreaProps>(propName: T, value: TextAreaProps[T]) => D["expectReturn"];
|
|
2186
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
2187
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
2188
|
+
}
|
|
2189
|
+
type TextFieldProps = {
|
|
2190
|
+
appearance: 'fieldset' | 'ghost';
|
|
2191
|
+
autoComplete: string;
|
|
2192
|
+
autofocus: boolean;
|
|
2193
|
+
charCount: boolean;
|
|
2194
|
+
disabled: boolean;
|
|
2195
|
+
errorText: string;
|
|
2196
|
+
helperText: string;
|
|
2197
|
+
icon: IconId;
|
|
2198
|
+
initialValue: string;
|
|
2199
|
+
inputmode: string;
|
|
2200
|
+
label: string;
|
|
2201
|
+
list: string;
|
|
2202
|
+
maxlength: number;
|
|
2203
|
+
minlength: number;
|
|
2204
|
+
name: string;
|
|
2205
|
+
pattern: string;
|
|
2206
|
+
placeholder: string;
|
|
2207
|
+
readonly: boolean;
|
|
2208
|
+
required: boolean;
|
|
2209
|
+
scale: 'condensed' | 'normal';
|
|
2210
|
+
shape: 'rounded' | 'pill';
|
|
2211
|
+
size: number;
|
|
2212
|
+
spellcheck: boolean;
|
|
2213
|
+
successText: string;
|
|
2214
|
+
type: 'email' | 'password' | 'tel' | 'text' | 'url';
|
|
2215
|
+
value: string;
|
|
2216
|
+
};
|
|
2217
|
+
export declare class TextFieldWrapper<D extends DriverT> extends BaseWrapper<D, VwcTextFieldElement> {
|
|
2218
|
+
type: "textField";
|
|
2219
|
+
componentInfo: {
|
|
2220
|
+
name: string;
|
|
2221
|
+
};
|
|
2222
|
+
hover: () => D["actionReturn"];
|
|
2223
|
+
focus: () => D["actionReturn"];
|
|
2224
|
+
fill: (text: string) => D["actionReturn"];
|
|
2225
|
+
clear: () => D["actionReturn"];
|
|
2226
|
+
blur: () => D["actionReturn"];
|
|
2227
|
+
}
|
|
2228
|
+
export declare class TextField<D extends DriverT> extends BaseComponent<D, TextFieldWrapper<D>> {
|
|
2229
|
+
componentInfo: {
|
|
2230
|
+
name: string;
|
|
2231
|
+
};
|
|
2232
|
+
wrap(locator: D['locator']): TextFieldWrapper<D>;
|
|
2233
|
+
byTestId: (id: string) => TextFieldWrapper<D>;
|
|
2234
|
+
byLabel: (label: string) => TextFieldWrapper<D>;
|
|
2235
|
+
}
|
|
2236
|
+
export declare class TextFieldExpectations<D extends DriverT> {
|
|
2237
|
+
private readonly ctx;
|
|
2238
|
+
private readonly wrapper;
|
|
2239
|
+
constructor(ctx: Context<D>, wrapper: TextFieldWrapper<D>);
|
|
2240
|
+
toHaveProp: <T extends keyof TextFieldProps>(propName: T, value: TextFieldProps[T]) => D["expectReturn"];
|
|
2241
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
2242
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
2243
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
2244
|
+
}
|
|
2245
|
+
type TimePickerProps = {
|
|
2246
|
+
clock: '12h' | '24h';
|
|
2247
|
+
disabled: boolean;
|
|
2248
|
+
errorText: string;
|
|
2249
|
+
helperText: string;
|
|
2250
|
+
initialValue: string;
|
|
2251
|
+
label: string;
|
|
2252
|
+
max: string;
|
|
2253
|
+
min: string;
|
|
2254
|
+
minutesStep: number;
|
|
2255
|
+
name: string;
|
|
2256
|
+
readonly: boolean;
|
|
2257
|
+
required: boolean;
|
|
2258
|
+
secondsStep: number;
|
|
2259
|
+
value: string;
|
|
2260
|
+
};
|
|
2261
|
+
export declare class TimePickerWrapper<D extends DriverT> extends BaseWrapper<D, VwcTimePickerElement> {
|
|
2262
|
+
type: "timePicker";
|
|
2263
|
+
componentInfo: {
|
|
2264
|
+
name: string;
|
|
2265
|
+
};
|
|
2266
|
+
hover: () => D["actionReturn"];
|
|
2267
|
+
focus: () => D["actionReturn"];
|
|
2268
|
+
blur: () => D["actionReturn"];
|
|
2269
|
+
clear: () => D["actionReturn"];
|
|
2270
|
+
selectTime: (time: string) => D["actionReturn"];
|
|
2271
|
+
}
|
|
2272
|
+
export declare class TimePicker<D extends DriverT> extends BaseComponent<D, TimePickerWrapper<D>> {
|
|
2273
|
+
componentInfo: {
|
|
2274
|
+
name: string;
|
|
2275
|
+
};
|
|
2276
|
+
wrap(locator: D['locator']): TimePickerWrapper<D>;
|
|
2277
|
+
byTestId: (id: string) => TimePickerWrapper<D>;
|
|
2278
|
+
byLabel: (label: string) => TimePickerWrapper<D>;
|
|
2279
|
+
}
|
|
2280
|
+
export declare class TimePickerExpectations<D extends DriverT> {
|
|
2281
|
+
private readonly ctx;
|
|
2282
|
+
private readonly wrapper;
|
|
2283
|
+
constructor(ctx: Context<D>, wrapper: TimePickerWrapper<D>);
|
|
2284
|
+
toHaveProp: <T extends keyof TimePickerProps>(propName: T, value: TimePickerProps[T]) => D["expectReturn"];
|
|
2285
|
+
toHaveVisibleError: (value: any) => D["expectReturn"];
|
|
2286
|
+
toHaveValue: (value: any) => D["expectReturn"];
|
|
2287
|
+
}
|
|
2288
|
+
type ToggletipProps = {
|
|
2289
|
+
alternate: boolean;
|
|
2290
|
+
anchor: string | HTMLElement;
|
|
2291
|
+
headline: string;
|
|
2292
|
+
open: boolean;
|
|
2293
|
+
placement: 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
|
|
2294
|
+
};
|
|
2295
|
+
export declare class ToggletipWrapper<D extends DriverT> extends BaseWrapper<D, VwcToggletipElement> {
|
|
2296
|
+
type: "toggletip";
|
|
2297
|
+
componentInfo: {
|
|
2298
|
+
name: string;
|
|
2299
|
+
};
|
|
2300
|
+
hover: () => D["actionReturn"];
|
|
2301
|
+
focus: () => D["actionReturn"];
|
|
2302
|
+
blur: () => D["actionReturn"];
|
|
2303
|
+
}
|
|
2304
|
+
export declare class Toggletip<D extends DriverT> extends BaseComponent<D, ToggletipWrapper<D>> {
|
|
2305
|
+
componentInfo: {
|
|
2306
|
+
name: string;
|
|
2307
|
+
};
|
|
2308
|
+
wrap(locator: D['locator']): ToggletipWrapper<D>;
|
|
2309
|
+
byTestId: (id: string) => ToggletipWrapper<D>;
|
|
2310
|
+
byHeadline: (headline: string) => ToggletipWrapper<D>;
|
|
2311
|
+
}
|
|
2312
|
+
export declare class ToggletipExpectations<D extends DriverT> {
|
|
2313
|
+
private readonly ctx;
|
|
2314
|
+
private readonly wrapper;
|
|
2315
|
+
constructor(ctx: Context<D>, wrapper: ToggletipWrapper<D>);
|
|
2316
|
+
toHaveProp: <T extends keyof ToggletipProps>(propName: T, value: ToggletipProps[T]) => D["expectReturn"];
|
|
2317
|
+
toBeOpen: () => D["expectReturn"];
|
|
2318
|
+
toBeClosed: () => D["expectReturn"];
|
|
2319
|
+
}
|
|
2320
|
+
type TooltipProps = {
|
|
2321
|
+
anchor: string | HTMLElement;
|
|
2322
|
+
open: boolean;
|
|
2323
|
+
placement: 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
|
|
2324
|
+
text: string;
|
|
2325
|
+
};
|
|
2326
|
+
export declare class TooltipWrapper<D extends DriverT> extends BaseWrapper<D, VwcTooltipElement> {
|
|
2327
|
+
type: "tooltip";
|
|
2328
|
+
componentInfo: {
|
|
2329
|
+
name: string;
|
|
2330
|
+
};
|
|
2331
|
+
hover: () => D["actionReturn"];
|
|
2332
|
+
focus: () => D["actionReturn"];
|
|
2333
|
+
blur: () => D["actionReturn"];
|
|
2334
|
+
}
|
|
2335
|
+
export declare class Tooltip<D extends DriverT> extends BaseComponent<D, TooltipWrapper<D>> {
|
|
2336
|
+
componentInfo: {
|
|
2337
|
+
name: string;
|
|
2338
|
+
};
|
|
2339
|
+
wrap(locator: D['locator']): TooltipWrapper<D>;
|
|
2340
|
+
byTestId: (id: string) => TooltipWrapper<D>;
|
|
2341
|
+
byText: (text: string) => TooltipWrapper<D>;
|
|
2342
|
+
}
|
|
2343
|
+
export declare class TooltipExpectations<D extends DriverT> {
|
|
2344
|
+
private readonly ctx;
|
|
2345
|
+
private readonly wrapper;
|
|
2346
|
+
constructor(ctx: Context<D>, wrapper: TooltipWrapper<D>);
|
|
2347
|
+
toHaveProp: <T extends keyof TooltipProps>(propName: T, value: TooltipProps[T]) => D["expectReturn"];
|
|
2348
|
+
toBeOpen: () => D["expectReturn"];
|
|
2349
|
+
toBeClosed: () => D["expectReturn"];
|
|
2350
|
+
}
|
|
2351
|
+
type TreeItemProps = {
|
|
2352
|
+
disabled: boolean;
|
|
2353
|
+
expanded: boolean;
|
|
2354
|
+
icon: IconId;
|
|
2355
|
+
selected: boolean;
|
|
2356
|
+
text: string;
|
|
2357
|
+
};
|
|
2358
|
+
export declare class TreeItemWrapper<D extends DriverT> extends BaseWrapper<D, VwcTreeItemElement> {
|
|
2359
|
+
type: "treeItem";
|
|
2360
|
+
componentInfo: {
|
|
2361
|
+
name: string;
|
|
2362
|
+
};
|
|
2363
|
+
hover: () => D["actionReturn"];
|
|
2364
|
+
focus: () => D["actionReturn"];
|
|
2365
|
+
blur: () => D["actionReturn"];
|
|
2366
|
+
}
|
|
2367
|
+
export declare class TreeItem<D extends DriverT> extends BaseComponent<D, TreeItemWrapper<D>> {
|
|
2368
|
+
componentInfo: {
|
|
2369
|
+
name: string;
|
|
2370
|
+
};
|
|
2371
|
+
wrap(locator: D['locator']): TreeItemWrapper<D>;
|
|
2372
|
+
byTestId: (id: string) => TreeItemWrapper<D>;
|
|
2373
|
+
}
|
|
2374
|
+
export declare class TreeItemExpectations<D extends DriverT> {
|
|
2375
|
+
private readonly ctx;
|
|
2376
|
+
private readonly wrapper;
|
|
2377
|
+
constructor(ctx: Context<D>, wrapper: TreeItemWrapper<D>);
|
|
2378
|
+
toHaveProp: <T extends keyof TreeItemProps>(propName: T, value: TreeItemProps[T]) => D["expectReturn"];
|
|
2379
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
2380
|
+
}
|
|
2381
|
+
type TreeViewProps = {
|
|
2382
|
+
renderCollapsedNodes: boolean;
|
|
2383
|
+
};
|
|
2384
|
+
export declare class TreeViewWrapper<D extends DriverT> extends BaseWrapper<D, VwcTreeViewElement> {
|
|
2385
|
+
type: "treeView";
|
|
2386
|
+
componentInfo: {
|
|
2387
|
+
name: string;
|
|
2388
|
+
};
|
|
2389
|
+
hover: () => D["actionReturn"];
|
|
2390
|
+
focus: () => D["actionReturn"];
|
|
2391
|
+
blur: () => D["actionReturn"];
|
|
2392
|
+
}
|
|
2393
|
+
export declare class TreeView<D extends DriverT> extends BaseComponent<D, TreeViewWrapper<D>> {
|
|
2394
|
+
componentInfo: {
|
|
2395
|
+
name: string;
|
|
2396
|
+
};
|
|
2397
|
+
wrap(locator: D['locator']): TreeViewWrapper<D>;
|
|
2398
|
+
byTestId: (id: string) => TreeViewWrapper<D>;
|
|
2399
|
+
}
|
|
2400
|
+
export declare class TreeViewExpectations<D extends DriverT> {
|
|
2401
|
+
private readonly ctx;
|
|
2402
|
+
private readonly wrapper;
|
|
2403
|
+
constructor(ctx: Context<D>, wrapper: TreeViewWrapper<D>);
|
|
2404
|
+
toHaveProp: <T extends "renderCollapsedNodes">(propName: T, value: TreeViewProps[T]) => D["expectReturn"];
|
|
2405
|
+
}
|
|
2406
|
+
type VideoPlayerProps = {
|
|
2407
|
+
autoplay: boolean;
|
|
2408
|
+
loop: boolean;
|
|
2409
|
+
playbackRates: string;
|
|
2410
|
+
poster: string;
|
|
2411
|
+
skipBy: '0' | '5' | '10' | '30';
|
|
2412
|
+
src: string;
|
|
2413
|
+
};
|
|
2414
|
+
export declare class VideoPlayerWrapper<D extends DriverT> extends BaseWrapper<D, VwcVideoPlayerElement> {
|
|
2415
|
+
type: "videoPlayer";
|
|
2416
|
+
componentInfo: {
|
|
2417
|
+
name: string;
|
|
2418
|
+
};
|
|
2419
|
+
hover: () => D["actionReturn"];
|
|
2420
|
+
focus: () => D["actionReturn"];
|
|
2421
|
+
blur: () => D["actionReturn"];
|
|
2422
|
+
}
|
|
2423
|
+
export declare class VideoPlayer<D extends DriverT> extends BaseComponent<D, VideoPlayerWrapper<D>> {
|
|
2424
|
+
componentInfo: {
|
|
2425
|
+
name: string;
|
|
2426
|
+
};
|
|
2427
|
+
wrap(locator: D['locator']): VideoPlayerWrapper<D>;
|
|
2428
|
+
byTestId: (id: string) => VideoPlayerWrapper<D>;
|
|
2429
|
+
}
|
|
2430
|
+
export declare class VideoPlayerExpectations<D extends DriverT> {
|
|
2431
|
+
private readonly ctx;
|
|
2432
|
+
private readonly wrapper;
|
|
2433
|
+
constructor(ctx: Context<D>, wrapper: VideoPlayerWrapper<D>);
|
|
2434
|
+
toHaveProp: <T extends keyof VideoPlayerProps>(propName: T, value: VideoPlayerProps[T]) => D["expectReturn"];
|
|
2435
|
+
}
|
|
2436
|
+
type Expectations<D extends DriverT> = {
|
|
2437
|
+
collection: ComponentCollectionExpectations<D>;
|
|
2438
|
+
accordion: AccordionExpectations<D>;
|
|
2439
|
+
accordionItem: AccordionItemExpectations<D>;
|
|
2440
|
+
actionGroup: ActionGroupExpectations<D>;
|
|
2441
|
+
alert: AlertExpectations<D>;
|
|
2442
|
+
audioPlayer: AudioPlayerExpectations<D>;
|
|
2443
|
+
avatar: AvatarExpectations<D>;
|
|
2444
|
+
badge: BadgeExpectations<D>;
|
|
2445
|
+
banner: BannerExpectations<D>;
|
|
2446
|
+
breadcrumb: BreadcrumbExpectations<D>;
|
|
2447
|
+
breadcrumbItem: BreadcrumbItemExpectations<D>;
|
|
2448
|
+
button: ButtonExpectations<D>;
|
|
2449
|
+
calendar: CalendarExpectations<D>;
|
|
2450
|
+
calendarEvent: CalendarEventExpectations<D>;
|
|
2451
|
+
card: CardExpectations<D>;
|
|
2452
|
+
checkbox: CheckboxExpectations<D>;
|
|
2453
|
+
combobox: ComboboxExpectations<D>;
|
|
2454
|
+
dataGrid: DataGridExpectations<D>;
|
|
2455
|
+
dataGridCell: DataGridCellExpectations<D>;
|
|
2456
|
+
dataGridRow: DataGridRowExpectations<D>;
|
|
2457
|
+
datePicker: DatePickerExpectations<D>;
|
|
2458
|
+
dateRangePicker: DateRangePickerExpectations<D>;
|
|
2459
|
+
dateTimePicker: DateTimePickerExpectations<D>;
|
|
2460
|
+
dialPad: DialPadExpectations<D>;
|
|
2461
|
+
dialog: DialogExpectations<D>;
|
|
2462
|
+
divider: DividerExpectations<D>;
|
|
2463
|
+
emptyState: EmptyStateExpectations<D>;
|
|
2464
|
+
fab: FabExpectations<D>;
|
|
2465
|
+
filePicker: FilePickerExpectations<D>;
|
|
2466
|
+
header: HeaderExpectations<D>;
|
|
2467
|
+
icon: IconExpectations<D>;
|
|
2468
|
+
layout: LayoutExpectations<D>;
|
|
2469
|
+
menu: MenuExpectations<D>;
|
|
2470
|
+
menuItem: MenuItemExpectations<D>;
|
|
2471
|
+
nav: NavExpectations<D>;
|
|
2472
|
+
navDisclosure: NavDisclosureExpectations<D>;
|
|
2473
|
+
navItem: NavItemExpectations<D>;
|
|
2474
|
+
note: NoteExpectations<D>;
|
|
2475
|
+
numberField: NumberFieldExpectations<D>;
|
|
2476
|
+
option: OptionExpectations<D>;
|
|
2477
|
+
pagination: PaginationExpectations<D>;
|
|
2478
|
+
progress: ProgressExpectations<D>;
|
|
2479
|
+
progressRing: ProgressRingExpectations<D>;
|
|
2480
|
+
radio: RadioExpectations<D>;
|
|
2481
|
+
radioGroup: RadioGroupExpectations<D>;
|
|
2482
|
+
rangeSlider: RangeSliderExpectations<D>;
|
|
2483
|
+
richTextEditor: RichTextEditorExpectations<D>;
|
|
2484
|
+
searchableSelect: SearchableSelectExpectations<D>;
|
|
2485
|
+
select: SelectExpectations<D>;
|
|
2486
|
+
selectableBox: SelectableBoxExpectations<D>;
|
|
2487
|
+
sideDrawer: SideDrawerExpectations<D>;
|
|
2488
|
+
simpleColorPicker: SimpleColorPickerExpectations<D>;
|
|
2489
|
+
slider: SliderExpectations<D>;
|
|
2490
|
+
splitButton: SplitButtonExpectations<D>;
|
|
2491
|
+
switch: SwitchExpectations<D>;
|
|
2492
|
+
tab: TabExpectations<D>;
|
|
2493
|
+
tabPanel: TabPanelExpectations<D>;
|
|
2494
|
+
tabs: TabsExpectations<D>;
|
|
2495
|
+
tag: TagExpectations<D>;
|
|
2496
|
+
tagGroup: TagGroupExpectations<D>;
|
|
2497
|
+
textArea: TextAreaExpectations<D>;
|
|
2498
|
+
textField: TextFieldExpectations<D>;
|
|
2499
|
+
timePicker: TimePickerExpectations<D>;
|
|
2500
|
+
toggletip: ToggletipExpectations<D>;
|
|
2501
|
+
tooltip: TooltipExpectations<D>;
|
|
2502
|
+
treeItem: TreeItemExpectations<D>;
|
|
2503
|
+
treeView: TreeViewExpectations<D>;
|
|
2504
|
+
videoPlayer: VideoPlayerExpectations<D>;
|
|
2505
|
+
};
|
|
2506
|
+
type ComponentLocator<D extends DriverT> = BaseWrapper<D> & {
|
|
2507
|
+
type: keyof Expectations<D>;
|
|
2508
|
+
};
|
|
2509
|
+
export declare class VividWrapper<D extends DriverT> {
|
|
2510
|
+
protected readonly ctx: Context<D>;
|
|
2511
|
+
constructor(ctx: Context<D>);
|
|
2512
|
+
expect<K extends ComponentLocator<D> | ComponentCollectionLocator<D, any>>(componentLocator: K): Expectations<D>[K['type']];
|
|
2513
|
+
accordion: Accordion<D>;
|
|
2514
|
+
accordionItem: AccordionItem<D>;
|
|
2515
|
+
actionGroup: ActionGroup<D>;
|
|
2516
|
+
alert: Alert<D>;
|
|
2517
|
+
audioPlayer: AudioPlayer<D>;
|
|
2518
|
+
avatar: Avatar<D>;
|
|
2519
|
+
badge: Badge<D>;
|
|
2520
|
+
banner: Banner<D>;
|
|
2521
|
+
breadcrumb: Breadcrumb<D>;
|
|
2522
|
+
breadcrumbItem: BreadcrumbItem<D>;
|
|
2523
|
+
button: Button<D>;
|
|
2524
|
+
calendar: Calendar<D>;
|
|
2525
|
+
calendarEvent: CalendarEvent<D>;
|
|
2526
|
+
card: Card<D>;
|
|
2527
|
+
checkbox: Checkbox<D>;
|
|
2528
|
+
combobox: Combobox<D>;
|
|
2529
|
+
dataGrid: DataGrid<D>;
|
|
2530
|
+
dataGridCell: DataGridCell<D>;
|
|
2531
|
+
dataGridRow: DataGridRow<D>;
|
|
2532
|
+
datePicker: DatePicker<D>;
|
|
2533
|
+
dateRangePicker: DateRangePicker<D>;
|
|
2534
|
+
dateTimePicker: DateTimePicker<D>;
|
|
2535
|
+
dialPad: DialPad<D>;
|
|
2536
|
+
dialog: Dialog<D>;
|
|
2537
|
+
divider: Divider<D>;
|
|
2538
|
+
emptyState: EmptyState<D>;
|
|
2539
|
+
fab: Fab<D>;
|
|
2540
|
+
filePicker: FilePicker<D>;
|
|
2541
|
+
header: Header<D>;
|
|
2542
|
+
icon: Icon<D>;
|
|
2543
|
+
layout: Layout<D>;
|
|
2544
|
+
menu: Menu<D>;
|
|
2545
|
+
menuItem: MenuItem<D>;
|
|
2546
|
+
nav: Nav<D>;
|
|
2547
|
+
navDisclosure: NavDisclosure<D>;
|
|
2548
|
+
navItem: NavItem<D>;
|
|
2549
|
+
note: Note<D>;
|
|
2550
|
+
numberField: NumberField<D>;
|
|
2551
|
+
option: Option<D>;
|
|
2552
|
+
pagination: Pagination<D>;
|
|
2553
|
+
progress: Progress<D>;
|
|
2554
|
+
progressRing: ProgressRing<D>;
|
|
2555
|
+
radio: Radio<D>;
|
|
2556
|
+
radioGroup: RadioGroup<D>;
|
|
2557
|
+
rangeSlider: RangeSlider<D>;
|
|
2558
|
+
richTextEditor: RichTextEditor<D>;
|
|
2559
|
+
searchableSelect: SearchableSelect<D>;
|
|
2560
|
+
select: Select<D>;
|
|
2561
|
+
selectableBox: SelectableBox<D>;
|
|
2562
|
+
sideDrawer: SideDrawer<D>;
|
|
2563
|
+
simpleColorPicker: SimpleColorPicker<D>;
|
|
2564
|
+
slider: Slider<D>;
|
|
2565
|
+
splitButton: SplitButton<D>;
|
|
2566
|
+
switch: Switch<D>;
|
|
2567
|
+
tab: Tab<D>;
|
|
2568
|
+
tabPanel: TabPanel<D>;
|
|
2569
|
+
tabs: Tabs<D>;
|
|
2570
|
+
tag: Tag<D>;
|
|
2571
|
+
tagGroup: TagGroup<D>;
|
|
2572
|
+
textArea: TextArea<D>;
|
|
2573
|
+
textField: TextField<D>;
|
|
2574
|
+
timePicker: TimePicker<D>;
|
|
2575
|
+
toggletip: Toggletip<D>;
|
|
2576
|
+
tooltip: Tooltip<D>;
|
|
2577
|
+
treeItem: TreeItem<D>;
|
|
2578
|
+
treeView: TreeView<D>;
|
|
2579
|
+
videoPlayer: VideoPlayer<D>;
|
|
2580
|
+
}
|
|
2581
|
+
export {};
|