@vonage/vivid-test-utils 5.8.0 → 5.10.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/dist/components.generated-7mfpO6v0.cjs +1 -0
- package/dist/{components.generated-Cpnh2Wie.js → components.generated-jnFpmMnu.js} +860 -584
- package/dist/components.generated.d.ts +266 -2
- package/dist/cypress.cjs +1 -1
- package/dist/cypress.js +1 -1
- package/dist/dom.cjs +1 -1
- package/dist/dom.js +1 -1
- package/dist/playwright.cjs +1 -1
- package/dist/playwright.js +1 -1
- package/package.json +5 -5
- package/dist/components.generated-BujKep52.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DriverT } from './drivers/driver';
|
|
2
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, VwcColorPickerElement, VwcComboboxElement, VwcContextualHelpElement, 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";
|
|
3
|
+
import type { VwcAccordionElement, VwcAccordionItemElement, VwcActionGroupElement, VwcAlertElement, VwcAudioPlayerElement, VwcAvatarElement, VwcBadgeElement, VwcBannerElement, VwcBreadcrumbElement, VwcBreadcrumbItemElement, VwcButtonElement, VwcCalendarElement, VwcCalendarEventElement, VwcCardElement, VwcCheckboxElement, VwcColorPickerElement, VwcComboboxElement, VwcContextualHelpElement, VwcCountryElement, VwcDataGridElement, VwcDataGridCellElement, VwcDataGridRowElement, VwcDatePickerElement, VwcDateRangePickerElement, VwcDateTimePickerElement, VwcDialPadElement, VwcDialogElement, VwcDividerElement, VwcEmptyStateElement, VwcFabElement, VwcFilePickerElement, VwcHeaderElement, VwcIconElement, VwcLayoutElement, VwcMenuElement, VwcMenuItemElement, VwcNavElement, VwcNavDisclosureElement, VwcNavItemElement, VwcNoteElement, VwcNumberFieldElement, VwcOptionElement, VwcPaginationElement, VwcPopoverElement, VwcProgressElement, VwcProgressRingElement, VwcRadioElement, VwcRadioGroupElement, VwcRangeSliderElement, VwcRichTextEditorElement, VwcRichTextViewElement, VwcSearchableSelectElement, VwcSelectElement, VwcSelectableBoxElement, VwcSideDrawerElement, VwcSimpleColorPickerElement, VwcSliderElement, VwcSplitButtonElement, VwcStatusElement, VwcSwitchElement, VwcTabElement, VwcTabPanelElement, VwcTableElement, VwcTableBodyElement, VwcTableCellElement, VwcTableHeadElement, VwcTableHeaderCellElement, VwcTableRowElement, VwcTabsElement, VwcTagElement, VwcTagGroupElement, VwcTextAreaElement, VwcTextFieldElement, VwcTimePickerElement, VwcToggletipElement, VwcTooltipElement, VwcTreeItemElement, VwcTreeViewElement, VwcVideoPlayerElement } from "@vonage/vivid";
|
|
4
4
|
type IconId = string;
|
|
5
5
|
type AccordionProps = {
|
|
6
6
|
expandMode: 'single' | 'multi';
|
|
@@ -655,6 +655,32 @@ export declare class ContextualHelpExpectations<D extends DriverT> {
|
|
|
655
655
|
constructor(ctx: Context<D>, wrapper: ContextualHelpWrapper<D>);
|
|
656
656
|
toHaveProp: <T extends "placement">(propName: T, value: ContextualHelpProps[T]) => D["expectReturn"];
|
|
657
657
|
}
|
|
658
|
+
type CountryProps = {
|
|
659
|
+
code: string;
|
|
660
|
+
label: string;
|
|
661
|
+
};
|
|
662
|
+
export declare class CountryWrapper<D extends DriverT> extends BaseWrapper<D, VwcCountryElement> {
|
|
663
|
+
type: "country";
|
|
664
|
+
componentInfo: {
|
|
665
|
+
name: string;
|
|
666
|
+
};
|
|
667
|
+
hover: () => D["actionReturn"];
|
|
668
|
+
focus: () => D["actionReturn"];
|
|
669
|
+
blur: () => D["actionReturn"];
|
|
670
|
+
}
|
|
671
|
+
export declare class Country<D extends DriverT> extends BaseComponent<D, CountryWrapper<D>> {
|
|
672
|
+
componentInfo: {
|
|
673
|
+
name: string;
|
|
674
|
+
};
|
|
675
|
+
wrap(locator: D['locator']): CountryWrapper<D>;
|
|
676
|
+
byTestId: (id: string) => CountryWrapper<D>;
|
|
677
|
+
}
|
|
678
|
+
export declare class CountryExpectations<D extends DriverT> {
|
|
679
|
+
private readonly ctx;
|
|
680
|
+
private readonly wrapper;
|
|
681
|
+
constructor(ctx: Context<D>, wrapper: CountryWrapper<D>);
|
|
682
|
+
toHaveProp: <T extends keyof CountryProps>(propName: T, value: CountryProps[T]) => D["expectReturn"];
|
|
683
|
+
}
|
|
658
684
|
type DataGridProps = {
|
|
659
685
|
fixedColumns: number;
|
|
660
686
|
generateHeader: 'none' | 'default' | 'sticky';
|
|
@@ -1515,6 +1541,38 @@ export declare class PaginationExpectations<D extends DriverT> {
|
|
|
1515
1541
|
toHaveTotal: (value: any) => D["expectReturn"];
|
|
1516
1542
|
toHaveSelectedPage: (value: any) => D["expectReturn"];
|
|
1517
1543
|
}
|
|
1544
|
+
type PopoverProps = {
|
|
1545
|
+
alternate: boolean;
|
|
1546
|
+
arrow: boolean;
|
|
1547
|
+
dismissButtonAriaLabel: string;
|
|
1548
|
+
layout: 'default' | 'condensed';
|
|
1549
|
+
manual: boolean;
|
|
1550
|
+
offset: number;
|
|
1551
|
+
open: boolean;
|
|
1552
|
+
placement: 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
|
|
1553
|
+
};
|
|
1554
|
+
export declare class PopoverWrapper<D extends DriverT> extends BaseWrapper<D, VwcPopoverElement> {
|
|
1555
|
+
type: "popover";
|
|
1556
|
+
componentInfo: {
|
|
1557
|
+
name: string;
|
|
1558
|
+
};
|
|
1559
|
+
hover: () => D["actionReturn"];
|
|
1560
|
+
focus: () => D["actionReturn"];
|
|
1561
|
+
blur: () => D["actionReturn"];
|
|
1562
|
+
}
|
|
1563
|
+
export declare class Popover<D extends DriverT> extends BaseComponent<D, PopoverWrapper<D>> {
|
|
1564
|
+
componentInfo: {
|
|
1565
|
+
name: string;
|
|
1566
|
+
};
|
|
1567
|
+
wrap(locator: D['locator']): PopoverWrapper<D>;
|
|
1568
|
+
byTestId: (id: string) => PopoverWrapper<D>;
|
|
1569
|
+
}
|
|
1570
|
+
export declare class PopoverExpectations<D extends DriverT> {
|
|
1571
|
+
private readonly ctx;
|
|
1572
|
+
private readonly wrapper;
|
|
1573
|
+
constructor(ctx: Context<D>, wrapper: PopoverWrapper<D>);
|
|
1574
|
+
toHaveProp: <T extends keyof PopoverProps>(propName: T, value: PopoverProps[T]) => D["expectReturn"];
|
|
1575
|
+
}
|
|
1518
1576
|
type ProgressProps = {
|
|
1519
1577
|
connotation: 'accent' | 'success' | 'alert' | 'cta' | 'pacific';
|
|
1520
1578
|
max: number;
|
|
@@ -1726,6 +1784,31 @@ export declare class RichTextEditorExpectations<D extends DriverT> {
|
|
|
1726
1784
|
constructor(ctx: Context<D>, wrapper: RichTextEditorWrapper<D>);
|
|
1727
1785
|
toHaveProp: <T extends "instance">(propName: T, value: RichTextEditorProps[T]) => D["expectReturn"];
|
|
1728
1786
|
}
|
|
1787
|
+
type RichTextViewProps = {
|
|
1788
|
+
view: any;
|
|
1789
|
+
};
|
|
1790
|
+
export declare class RichTextViewWrapper<D extends DriverT> extends BaseWrapper<D, VwcRichTextViewElement> {
|
|
1791
|
+
type: "richTextView";
|
|
1792
|
+
componentInfo: {
|
|
1793
|
+
name: string;
|
|
1794
|
+
};
|
|
1795
|
+
hover: () => D["actionReturn"];
|
|
1796
|
+
focus: () => D["actionReturn"];
|
|
1797
|
+
blur: () => D["actionReturn"];
|
|
1798
|
+
}
|
|
1799
|
+
export declare class RichTextView<D extends DriverT> extends BaseComponent<D, RichTextViewWrapper<D>> {
|
|
1800
|
+
componentInfo: {
|
|
1801
|
+
name: string;
|
|
1802
|
+
};
|
|
1803
|
+
wrap(locator: D['locator']): RichTextViewWrapper<D>;
|
|
1804
|
+
byTestId: (id: string) => RichTextViewWrapper<D>;
|
|
1805
|
+
}
|
|
1806
|
+
export declare class RichTextViewExpectations<D extends DriverT> {
|
|
1807
|
+
private readonly ctx;
|
|
1808
|
+
private readonly wrapper;
|
|
1809
|
+
constructor(ctx: Context<D>, wrapper: RichTextViewWrapper<D>);
|
|
1810
|
+
toHaveProp: <T extends "view">(propName: T, value: RichTextViewProps[T]) => D["expectReturn"];
|
|
1811
|
+
}
|
|
1729
1812
|
type SearchableSelectProps = {
|
|
1730
1813
|
appearance: 'fieldset' | 'ghost';
|
|
1731
1814
|
clearable: boolean;
|
|
@@ -1839,6 +1922,7 @@ type SelectableBoxProps = {
|
|
|
1839
1922
|
connotation: 'accent' | 'cta';
|
|
1840
1923
|
controlPlacement: 'start' | 'start-stacked' | 'end' | 'end-stacked';
|
|
1841
1924
|
controlType: 'checkbox' | 'radio';
|
|
1925
|
+
disabled: boolean;
|
|
1842
1926
|
tight: boolean;
|
|
1843
1927
|
};
|
|
1844
1928
|
export declare class SelectableBoxWrapper<D extends DriverT> extends BaseWrapper<D, VwcSelectableBoxElement> {
|
|
@@ -2016,6 +2100,34 @@ export declare class SplitButtonExpectations<D extends DriverT> {
|
|
|
2016
2100
|
toHaveProp: <T extends keyof SplitButtonProps>(propName: T, value: SplitButtonProps[T]) => D["expectReturn"];
|
|
2017
2101
|
toHaveIcon: (value: any) => D["expectReturn"];
|
|
2018
2102
|
}
|
|
2103
|
+
type StatusProps = {
|
|
2104
|
+
connotation: 'success' | 'information' | 'warning' | 'alert';
|
|
2105
|
+
icon: IconId;
|
|
2106
|
+
status: string;
|
|
2107
|
+
};
|
|
2108
|
+
export declare class StatusWrapper<D extends DriverT> extends BaseWrapper<D, VwcStatusElement> {
|
|
2109
|
+
type: "status";
|
|
2110
|
+
componentInfo: {
|
|
2111
|
+
name: string;
|
|
2112
|
+
};
|
|
2113
|
+
hover: () => D["actionReturn"];
|
|
2114
|
+
focus: () => D["actionReturn"];
|
|
2115
|
+
blur: () => D["actionReturn"];
|
|
2116
|
+
}
|
|
2117
|
+
export declare class Status<D extends DriverT> extends BaseComponent<D, StatusWrapper<D>> {
|
|
2118
|
+
componentInfo: {
|
|
2119
|
+
name: string;
|
|
2120
|
+
};
|
|
2121
|
+
wrap(locator: D['locator']): StatusWrapper<D>;
|
|
2122
|
+
byTestId: (id: string) => StatusWrapper<D>;
|
|
2123
|
+
}
|
|
2124
|
+
export declare class StatusExpectations<D extends DriverT> {
|
|
2125
|
+
private readonly ctx;
|
|
2126
|
+
private readonly wrapper;
|
|
2127
|
+
constructor(ctx: Context<D>, wrapper: StatusWrapper<D>);
|
|
2128
|
+
toHaveProp: <T extends keyof StatusProps>(propName: T, value: StatusProps[T]) => D["expectReturn"];
|
|
2129
|
+
toHaveIcon: (value: any) => D["expectReturn"];
|
|
2130
|
+
}
|
|
2019
2131
|
type SwitchProps = {
|
|
2020
2132
|
checked: boolean;
|
|
2021
2133
|
connotation: 'accent' | 'alert' | 'announcement' | 'success' | 'cta';
|
|
@@ -2115,6 +2227,138 @@ export declare class TabPanelExpectations<D extends DriverT> {
|
|
|
2115
2227
|
constructor(ctx: Context<D>, wrapper: TabPanelWrapper<D>);
|
|
2116
2228
|
toHaveProp: (propName: never, value: never) => never;
|
|
2117
2229
|
}
|
|
2230
|
+
export declare class TableWrapper<D extends DriverT> extends BaseWrapper<D, VwcTableElement> {
|
|
2231
|
+
type: "table";
|
|
2232
|
+
componentInfo: {
|
|
2233
|
+
name: string;
|
|
2234
|
+
};
|
|
2235
|
+
hover: () => D["actionReturn"];
|
|
2236
|
+
focus: () => D["actionReturn"];
|
|
2237
|
+
blur: () => D["actionReturn"];
|
|
2238
|
+
}
|
|
2239
|
+
export declare class Table<D extends DriverT> extends BaseComponent<D, TableWrapper<D>> {
|
|
2240
|
+
componentInfo: {
|
|
2241
|
+
name: string;
|
|
2242
|
+
};
|
|
2243
|
+
wrap(locator: D['locator']): TableWrapper<D>;
|
|
2244
|
+
byTestId: (id: string) => TableWrapper<D>;
|
|
2245
|
+
}
|
|
2246
|
+
export declare class TableExpectations<D extends DriverT> {
|
|
2247
|
+
private readonly ctx;
|
|
2248
|
+
private readonly wrapper;
|
|
2249
|
+
constructor(ctx: Context<D>, wrapper: TableWrapper<D>);
|
|
2250
|
+
toHaveProp: (propName: never, value: never) => never;
|
|
2251
|
+
}
|
|
2252
|
+
export declare class TableBodyWrapper<D extends DriverT> extends BaseWrapper<D, VwcTableBodyElement> {
|
|
2253
|
+
type: "tableBody";
|
|
2254
|
+
componentInfo: {
|
|
2255
|
+
name: string;
|
|
2256
|
+
};
|
|
2257
|
+
hover: () => D["actionReturn"];
|
|
2258
|
+
focus: () => D["actionReturn"];
|
|
2259
|
+
blur: () => D["actionReturn"];
|
|
2260
|
+
}
|
|
2261
|
+
export declare class TableBody<D extends DriverT> extends BaseComponent<D, TableBodyWrapper<D>> {
|
|
2262
|
+
componentInfo: {
|
|
2263
|
+
name: string;
|
|
2264
|
+
};
|
|
2265
|
+
wrap(locator: D['locator']): TableBodyWrapper<D>;
|
|
2266
|
+
byTestId: (id: string) => TableBodyWrapper<D>;
|
|
2267
|
+
}
|
|
2268
|
+
export declare class TableBodyExpectations<D extends DriverT> {
|
|
2269
|
+
private readonly ctx;
|
|
2270
|
+
private readonly wrapper;
|
|
2271
|
+
constructor(ctx: Context<D>, wrapper: TableBodyWrapper<D>);
|
|
2272
|
+
toHaveProp: (propName: never, value: never) => never;
|
|
2273
|
+
}
|
|
2274
|
+
export declare class TableCellWrapper<D extends DriverT> extends BaseWrapper<D, VwcTableCellElement> {
|
|
2275
|
+
type: "tableCell";
|
|
2276
|
+
componentInfo: {
|
|
2277
|
+
name: string;
|
|
2278
|
+
};
|
|
2279
|
+
hover: () => D["actionReturn"];
|
|
2280
|
+
focus: () => D["actionReturn"];
|
|
2281
|
+
blur: () => D["actionReturn"];
|
|
2282
|
+
}
|
|
2283
|
+
export declare class TableCell<D extends DriverT> extends BaseComponent<D, TableCellWrapper<D>> {
|
|
2284
|
+
componentInfo: {
|
|
2285
|
+
name: string;
|
|
2286
|
+
};
|
|
2287
|
+
wrap(locator: D['locator']): TableCellWrapper<D>;
|
|
2288
|
+
byTestId: (id: string) => TableCellWrapper<D>;
|
|
2289
|
+
}
|
|
2290
|
+
export declare class TableCellExpectations<D extends DriverT> {
|
|
2291
|
+
private readonly ctx;
|
|
2292
|
+
private readonly wrapper;
|
|
2293
|
+
constructor(ctx: Context<D>, wrapper: TableCellWrapper<D>);
|
|
2294
|
+
toHaveProp: (propName: never, value: never) => never;
|
|
2295
|
+
}
|
|
2296
|
+
export declare class TableHeadWrapper<D extends DriverT> extends BaseWrapper<D, VwcTableHeadElement> {
|
|
2297
|
+
type: "tableHead";
|
|
2298
|
+
componentInfo: {
|
|
2299
|
+
name: string;
|
|
2300
|
+
};
|
|
2301
|
+
hover: () => D["actionReturn"];
|
|
2302
|
+
focus: () => D["actionReturn"];
|
|
2303
|
+
blur: () => D["actionReturn"];
|
|
2304
|
+
}
|
|
2305
|
+
export declare class TableHead<D extends DriverT> extends BaseComponent<D, TableHeadWrapper<D>> {
|
|
2306
|
+
componentInfo: {
|
|
2307
|
+
name: string;
|
|
2308
|
+
};
|
|
2309
|
+
wrap(locator: D['locator']): TableHeadWrapper<D>;
|
|
2310
|
+
byTestId: (id: string) => TableHeadWrapper<D>;
|
|
2311
|
+
}
|
|
2312
|
+
export declare class TableHeadExpectations<D extends DriverT> {
|
|
2313
|
+
private readonly ctx;
|
|
2314
|
+
private readonly wrapper;
|
|
2315
|
+
constructor(ctx: Context<D>, wrapper: TableHeadWrapper<D>);
|
|
2316
|
+
toHaveProp: (propName: never, value: never) => never;
|
|
2317
|
+
}
|
|
2318
|
+
export declare class TableHeaderCellWrapper<D extends DriverT> extends BaseWrapper<D, VwcTableHeaderCellElement> {
|
|
2319
|
+
type: "tableHeaderCell";
|
|
2320
|
+
componentInfo: {
|
|
2321
|
+
name: string;
|
|
2322
|
+
};
|
|
2323
|
+
hover: () => D["actionReturn"];
|
|
2324
|
+
focus: () => D["actionReturn"];
|
|
2325
|
+
blur: () => D["actionReturn"];
|
|
2326
|
+
}
|
|
2327
|
+
export declare class TableHeaderCell<D extends DriverT> extends BaseComponent<D, TableHeaderCellWrapper<D>> {
|
|
2328
|
+
componentInfo: {
|
|
2329
|
+
name: string;
|
|
2330
|
+
};
|
|
2331
|
+
wrap(locator: D['locator']): TableHeaderCellWrapper<D>;
|
|
2332
|
+
byTestId: (id: string) => TableHeaderCellWrapper<D>;
|
|
2333
|
+
}
|
|
2334
|
+
export declare class TableHeaderCellExpectations<D extends DriverT> {
|
|
2335
|
+
private readonly ctx;
|
|
2336
|
+
private readonly wrapper;
|
|
2337
|
+
constructor(ctx: Context<D>, wrapper: TableHeaderCellWrapper<D>);
|
|
2338
|
+
toHaveProp: (propName: never, value: never) => never;
|
|
2339
|
+
}
|
|
2340
|
+
export declare class TableRowWrapper<D extends DriverT> extends BaseWrapper<D, VwcTableRowElement> {
|
|
2341
|
+
type: "tableRow";
|
|
2342
|
+
componentInfo: {
|
|
2343
|
+
name: string;
|
|
2344
|
+
};
|
|
2345
|
+
hover: () => D["actionReturn"];
|
|
2346
|
+
focus: () => D["actionReturn"];
|
|
2347
|
+
blur: () => D["actionReturn"];
|
|
2348
|
+
}
|
|
2349
|
+
export declare class TableRow<D extends DriverT> extends BaseComponent<D, TableRowWrapper<D>> {
|
|
2350
|
+
componentInfo: {
|
|
2351
|
+
name: string;
|
|
2352
|
+
};
|
|
2353
|
+
wrap(locator: D['locator']): TableRowWrapper<D>;
|
|
2354
|
+
byTestId: (id: string) => TableRowWrapper<D>;
|
|
2355
|
+
}
|
|
2356
|
+
export declare class TableRowExpectations<D extends DriverT> {
|
|
2357
|
+
private readonly ctx;
|
|
2358
|
+
private readonly wrapper;
|
|
2359
|
+
constructor(ctx: Context<D>, wrapper: TableRowWrapper<D>);
|
|
2360
|
+
toHaveProp: (propName: never, value: never) => never;
|
|
2361
|
+
}
|
|
2118
2362
|
type TabsProps = {
|
|
2119
2363
|
activeid: string;
|
|
2120
2364
|
activeindicator: boolean;
|
|
@@ -2148,7 +2392,7 @@ export declare class TabsExpectations<D extends DriverT> {
|
|
|
2148
2392
|
}
|
|
2149
2393
|
type TagProps = {
|
|
2150
2394
|
appearance: 'subtle' | 'duotone' | 'subtle-light';
|
|
2151
|
-
connotation: 'accent' | 'cta';
|
|
2395
|
+
connotation: 'accent' | 'cta' | 'success' | 'alert' | 'warning' | 'information' | 'announcement';
|
|
2152
2396
|
disabled: boolean;
|
|
2153
2397
|
icon: IconId;
|
|
2154
2398
|
label: string;
|
|
@@ -2529,6 +2773,7 @@ type Expectations<D extends DriverT> = {
|
|
|
2529
2773
|
colorPicker: ColorPickerExpectations<D>;
|
|
2530
2774
|
combobox: ComboboxExpectations<D>;
|
|
2531
2775
|
contextualHelp: ContextualHelpExpectations<D>;
|
|
2776
|
+
country: CountryExpectations<D>;
|
|
2532
2777
|
dataGrid: DataGridExpectations<D>;
|
|
2533
2778
|
dataGridCell: DataGridCellExpectations<D>;
|
|
2534
2779
|
dataGridRow: DataGridRowExpectations<D>;
|
|
@@ -2553,12 +2798,14 @@ type Expectations<D extends DriverT> = {
|
|
|
2553
2798
|
numberField: NumberFieldExpectations<D>;
|
|
2554
2799
|
option: OptionExpectations<D>;
|
|
2555
2800
|
pagination: PaginationExpectations<D>;
|
|
2801
|
+
popover: PopoverExpectations<D>;
|
|
2556
2802
|
progress: ProgressExpectations<D>;
|
|
2557
2803
|
progressRing: ProgressRingExpectations<D>;
|
|
2558
2804
|
radio: RadioExpectations<D>;
|
|
2559
2805
|
radioGroup: RadioGroupExpectations<D>;
|
|
2560
2806
|
rangeSlider: RangeSliderExpectations<D>;
|
|
2561
2807
|
richTextEditor: RichTextEditorExpectations<D>;
|
|
2808
|
+
richTextView: RichTextViewExpectations<D>;
|
|
2562
2809
|
searchableSelect: SearchableSelectExpectations<D>;
|
|
2563
2810
|
select: SelectExpectations<D>;
|
|
2564
2811
|
selectableBox: SelectableBoxExpectations<D>;
|
|
@@ -2566,9 +2813,16 @@ type Expectations<D extends DriverT> = {
|
|
|
2566
2813
|
simpleColorPicker: SimpleColorPickerExpectations<D>;
|
|
2567
2814
|
slider: SliderExpectations<D>;
|
|
2568
2815
|
splitButton: SplitButtonExpectations<D>;
|
|
2816
|
+
status: StatusExpectations<D>;
|
|
2569
2817
|
switch: SwitchExpectations<D>;
|
|
2570
2818
|
tab: TabExpectations<D>;
|
|
2571
2819
|
tabPanel: TabPanelExpectations<D>;
|
|
2820
|
+
table: TableExpectations<D>;
|
|
2821
|
+
tableBody: TableBodyExpectations<D>;
|
|
2822
|
+
tableCell: TableCellExpectations<D>;
|
|
2823
|
+
tableHead: TableHeadExpectations<D>;
|
|
2824
|
+
tableHeaderCell: TableHeaderCellExpectations<D>;
|
|
2825
|
+
tableRow: TableRowExpectations<D>;
|
|
2572
2826
|
tabs: TabsExpectations<D>;
|
|
2573
2827
|
tag: TagExpectations<D>;
|
|
2574
2828
|
tagGroup: TagGroupExpectations<D>;
|
|
@@ -2606,6 +2860,7 @@ export declare class VividWrapper<D extends DriverT> {
|
|
|
2606
2860
|
colorPicker: ColorPicker<D>;
|
|
2607
2861
|
combobox: Combobox<D>;
|
|
2608
2862
|
contextualHelp: ContextualHelp<D>;
|
|
2863
|
+
country: Country<D>;
|
|
2609
2864
|
dataGrid: DataGrid<D>;
|
|
2610
2865
|
dataGridCell: DataGridCell<D>;
|
|
2611
2866
|
dataGridRow: DataGridRow<D>;
|
|
@@ -2630,12 +2885,14 @@ export declare class VividWrapper<D extends DriverT> {
|
|
|
2630
2885
|
numberField: NumberField<D>;
|
|
2631
2886
|
option: Option<D>;
|
|
2632
2887
|
pagination: Pagination<D>;
|
|
2888
|
+
popover: Popover<D>;
|
|
2633
2889
|
progress: Progress<D>;
|
|
2634
2890
|
progressRing: ProgressRing<D>;
|
|
2635
2891
|
radio: Radio<D>;
|
|
2636
2892
|
radioGroup: RadioGroup<D>;
|
|
2637
2893
|
rangeSlider: RangeSlider<D>;
|
|
2638
2894
|
richTextEditor: RichTextEditor<D>;
|
|
2895
|
+
richTextView: RichTextView<D>;
|
|
2639
2896
|
searchableSelect: SearchableSelect<D>;
|
|
2640
2897
|
select: Select<D>;
|
|
2641
2898
|
selectableBox: SelectableBox<D>;
|
|
@@ -2643,9 +2900,16 @@ export declare class VividWrapper<D extends DriverT> {
|
|
|
2643
2900
|
simpleColorPicker: SimpleColorPicker<D>;
|
|
2644
2901
|
slider: Slider<D>;
|
|
2645
2902
|
splitButton: SplitButton<D>;
|
|
2903
|
+
status: Status<D>;
|
|
2646
2904
|
switch: Switch<D>;
|
|
2647
2905
|
tab: Tab<D>;
|
|
2648
2906
|
tabPanel: TabPanel<D>;
|
|
2907
|
+
table: Table<D>;
|
|
2908
|
+
tableBody: TableBody<D>;
|
|
2909
|
+
tableCell: TableCell<D>;
|
|
2910
|
+
tableHead: TableHead<D>;
|
|
2911
|
+
tableHeaderCell: TableHeaderCell<D>;
|
|
2912
|
+
tableRow: TableRow<D>;
|
|
2649
2913
|
tabs: Tabs<D>;
|
|
2650
2914
|
tag: Tag<D>;
|
|
2651
2915
|
tagGroup: TagGroup<D>;
|
package/dist/cypress.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./components.generated-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./components.generated-7mfpO6v0.cjs"),w=async()=>new Promise(i=>requestAnimationFrame(()=>i())),k=i=>{const u=r=>r===i;let n;const l=r=>{const e=n;return(...a)=>{const t=window.Error;window.Error=class extends Error{constructor(o){super(o),o==="userInvocationStack"&&(this.stack=e)}static captureStackTrace(o,c){o.message!=="userInvocationStack"&&super.captureStackTrace(o,c)}};try{return r(...a)}finally{window.Error=t}}};return{querySelector:(r,e)=>l(()=>u(r)?r.get(e):r().find(e)),enterShadow:r=>l(()=>r().shadow()),querySelectorAll:(r,e)=>l(()=>u(r)?r.get(e):r().find(e)),nth:(r,e)=>l(()=>r().eq(e)),userClick:r=>r().click(),userClear:r=>r().clear(),userFocus:r=>r().focus(),userBlur:r=>r().blur(),userHover:r=>r().then(e=>e.get(0).dispatchEvent(new MouseEvent("mouseover"))),userFill:(r,e)=>e===""?r().clear():r().clear().type(e),userDragSlider:(r,e,a,t)=>{r().then(s=>{a().then(async o=>{const c=s.get(0),p=o.get(0);p.id==="start-thumb"?(c.startAsNumber=t,c.$emit("input:start"),c.$emit("input")):p.id==="end-thumb"?(c.endAsNumber=t,c.$emit("input:end"),c.$emit("input")):c.valueAsNumber=t,await w()})})},eval:(r,e,a,t)=>{const s=n;r().then(async o=>{n=s;try{const c=await e(o.get(0),a);await(t==null?void 0:t(c))}finally{n=void 0}})},waitForUpdate(r){r().then(()=>new Promise(e=>{requestAnimationFrame(()=>{e()})}))},expectEq:(r,e,a)=>{const t=n;switch(r.type){case"eval":r.el().should(s=>{try{expect(r.fn(s.get(0),r.arg)).to.deep.equal(e)}catch(o){const c=new Error(`${a}
|
|
2
2
|
|
|
3
3
|
Original error: ${o.message}`);throw t&&(c.stack=t),c}});break;case"count":r.el().should("have.length",e);break}},wrapAction:r=>function e(...a){if(!n){const t=new Error;Error.captureStackTrace(t,e),n=t.stack}try{return r(...a)}finally{n=void 0}},wrapExpect:r=>function e(...a){if(!n){const t=new Error;Error.captureStackTrace(t,e),n=t.stack}try{return r(...a)}finally{n=void 0}},wrapSelector:r=>function e(...a){if(!n){const t=new Error;Error.captureStackTrace(t,e),n=t.stack}try{return r(...a)}finally{n=void 0}}}},v=i=>{const u={rootLocator:i,driver:k(i)};return new d.VividWrapper(u)};exports.vividCypress=v;
|
package/dist/cypress.js
CHANGED
package/dist/dom.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./components.generated-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./components.generated-7mfpO6v0.cjs"),w=require("@testing-library/user-event"),n=()=>new Promise(c=>{requestAnimationFrame(()=>c())}),l=c=>{const s=w.setup(),i=async r=>{r.focus(),r.value="",r.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))};return{querySelector:(r,t)=>{const a=r.querySelector(t);if(!a)throw new Error(`Could not find element: ${t}`);return a},enterShadow(r){if(!r.shadowRoot)throw new Error(`Element ${r.outerHTML} does not have a shadow root`);return r.shadowRoot},querySelectorAll:(r,t)=>r?Array.from(r.querySelectorAll(t)):[],nth:(r,t)=>{if(t<0||t>r.length-1)throw new Error(`Could not find element with index "${t}". Collection only has "${r.length}" elements.`);return r[t]},userClick:async r=>{await s.click(r),await n()},userFill:async(r,t)=>{await i(r),t&&await s.type(r,t),await n()},userClear:async r=>{await i(r),await n()},userFocus:async r=>{r.focus(),await n()},userBlur:async r=>{r.blur(),(r.tagName==="INPUT"||r.tagName==="TEXTAREA")&&r.dispatchEvent(new InputEvent("change",{bubbles:!0,composed:!0})),await n()},userHover:async r=>{await s.hover(r),await n()},userDragSlider:async(r,t,a,e)=>{if(a.id==="start-thumb"){const o=r;o.startAsNumber=e,o.$emit("input:start"),o.$emit("input")}else if(a.id==="end-thumb"){const o=r;o.endAsNumber=e,o.$emit("input:end"),o.$emit("input")}else{const o=r;o.valueAsNumber=e}await n()},eval:async(r,t,a,e)=>{const o=await t(r,a);await(e==null?void 0:e(o))},waitForUpdate:async()=>{await n()},expectEq:(r,t,a)=>{switch(r.type){case"eval":try{c(r.fn(r.el,r.arg)).toEqual(t)}catch(e){throw e instanceof Error&&(e.message=`${a}
|
|
2
2
|
|
|
3
3
|
Original error: ${e.message}`),e}break;case"count":c(r.el.length).toEqual(t);break}},wrapAction:r=>async function t(...a){try{return await r(...a)}catch(e){throw e instanceof Error&&Error.captureStackTrace(e,t),e}},wrapExpect:r=>function t(...a){try{return r(...a)}catch(e){throw e instanceof Error&&Error.captureStackTrace(e,t),e}},wrapSelector:r=>function t(...a){try{return r(...a)}catch(e){throw e instanceof Error&&Error.captureStackTrace(e,t),e}}}},p=(c,s)=>{const i={rootLocator:s,driver:l(c)};return new u.VividWrapper(i)};exports.vividDOM=p;
|
package/dist/dom.js
CHANGED
package/dist/playwright.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./components.generated-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./components.generated-7mfpO6v0.cjs"),w=c=>({querySelector:(r,e)=>r.locator(e),enterShadow:r=>r,querySelectorAll:(r,e)=>r.locator(e),nth:(r,e)=>r.nth(e),userClick:r=>r.click(),userFill:(r,e)=>r.fill(e),userClear:r=>r.clear(),userFocus:r=>r.focus(),userBlur:r=>r.blur(),userHover:r=>r.hover(),userDragSlider:async(r,e,a,t)=>{const s=await a.getAttribute("id");await r.evaluate((o,[l,n])=>{if(l==="start-thumb"){const i=o;i.startAsNumber=n,i.$emit("input:start"),i.$emit("input")}else if(l==="end-thumb"){const i=o;i.endAsNumber=n,i.$emit("input:end"),i.$emit("input")}else{const i=o;i.valueAsNumber=n}},[s,t])},eval:async(r,e,a,t)=>{const s=await r.evaluate(e,a);await(t==null?void 0:t(s))},waitForUpdate:async r=>{await r.evaluate(()=>new Promise(e=>{requestAnimationFrame(()=>e())}))},expectEq:async(r,e,a)=>{switch(r.type){case"eval":try{await c(async()=>c(await r.el.evaluate(r.fn,r.arg)).toEqual(e)).toPass()}catch(t){throw t instanceof Error&&(t.message=`${a}
|
|
2
2
|
|
|
3
3
|
Original error: ${t.message}`),t}break;case"count":await c(r.el).toHaveCount(e);break}},wrapAction:r=>async function e(...a){try{return await r(...a)}catch(t){throw t instanceof Error&&Error.captureStackTrace(t,e),t}},wrapExpect:r=>async function e(...a){try{return await r(...a)}catch(t){throw t instanceof Error&&Error.captureStackTrace(t,e),t}},wrapSelector:r=>r}),p=(c,r)=>{const e={rootLocator:c,driver:w(r)};return new u.VividWrapper(e)};exports.vividPlaywright=p;
|
package/dist/playwright.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid-test-utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./dom": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@testing-library/user-event": "^14.6.1",
|
|
32
|
-
"@vonage/vivid": "^5.
|
|
32
|
+
"@vonage/vivid": "^5.10.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@playwright/test": "1.57.0",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"vue": "^3.5.24",
|
|
44
44
|
"wait-on": "^8.0.5",
|
|
45
45
|
"@repo/eslint-config": "1.0.0",
|
|
46
|
-
"@repo/shared": "1.0.0",
|
|
47
|
-
"@repo/typescript-config": "1.0.0",
|
|
48
46
|
"@repo/vitest-config": "1.0.0",
|
|
47
|
+
"@repo/shared": "1.0.0",
|
|
49
48
|
"@repo/wrapper-gen": "1.0.0",
|
|
50
|
-
"@
|
|
49
|
+
"@repo/typescript-config": "1.0.0",
|
|
50
|
+
"@vonage/vivid-vue": "5.10.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"prebuild": "tsx scripts/codegen.ts",
|