@linzjs/step-ag-grid 7.19.4 → 7.19.6
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/package.json
CHANGED
|
@@ -50,16 +50,13 @@ export const GridFormTextInput = <RowType extends GridBaseRow>(props: GridFormTe
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
return popoverWrapper(
|
|
53
|
-
<div
|
|
54
|
-
style={{ display: "flex", flexDirection: "row", width: props.width ?? 240 }}
|
|
55
|
-
className={"FormTest subComponent"}
|
|
56
|
-
>
|
|
53
|
+
<div style={{ display: "flex", flexDirection: "row" }} className={"FormTest subComponent"}>
|
|
57
54
|
<TextInputFormatted
|
|
58
55
|
value={value}
|
|
59
56
|
onChange={(e) => setValue(e.target.value)}
|
|
60
57
|
error={invalid()}
|
|
61
58
|
formatted={props.units}
|
|
62
|
-
style={{ width:
|
|
59
|
+
style={{ width: props.width ?? 240 }}
|
|
63
60
|
placeholder={props.placeholder}
|
|
64
61
|
helpText={helpText}
|
|
65
62
|
/>
|
package/src/utils/testUtil.ts
CHANGED
|
@@ -8,7 +8,12 @@ export const countRows = async (within?: HTMLElement): Promise<number> => {
|
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export const findRow = async (rowId: number | string, within?: HTMLElement): Promise<HTMLDivElement> => {
|
|
11
|
-
|
|
11
|
+
//if this is not wrapped in an act console errors are logged during testing
|
|
12
|
+
let row!: HTMLDivElement;
|
|
13
|
+
await act(async () => {
|
|
14
|
+
row = await findQuick<HTMLDivElement>({ tagName: `div[row-id='${rowId}']:not(:empty)` }, within);
|
|
15
|
+
});
|
|
16
|
+
return row;
|
|
12
17
|
};
|
|
13
18
|
|
|
14
19
|
export const queryRow = async (rowId: number | string, within?: HTMLElement): Promise<HTMLDivElement | null> => {
|