@linzjs/step-ag-grid 7.19.0 → 7.19.2
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
|
@@ -13,7 +13,9 @@ export const GridPopoverMenu = <RowType extends GridBaseRow>(
|
|
|
13
13
|
): ColDefT<RowType> =>
|
|
14
14
|
GridCell<RowType, GridFormPopoutMenuProps<RowType>>(
|
|
15
15
|
{
|
|
16
|
+
minWidth: 40,
|
|
16
17
|
maxWidth: 40,
|
|
18
|
+
width: 40,
|
|
17
19
|
editable: colDef.editable != null ? colDef.editable : true,
|
|
18
20
|
cellStyle: { justifyContent: "center" },
|
|
19
21
|
cellRenderer: GridRenderPopoutMenuCell,
|
package/src/utils/testUtil.ts
CHANGED
|
@@ -42,8 +42,13 @@ export const deselectRow = async (rowId: string | number, within?: HTMLElement):
|
|
|
42
42
|
_selectRow("deselect", rowId, within);
|
|
43
43
|
|
|
44
44
|
export const findCell = async (rowId: number | string, colId: string, within?: HTMLElement): Promise<HTMLElement> => {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
//if this is not wrapped in an act console errors are logged during testing
|
|
46
|
+
let cell!: HTMLElement;
|
|
47
|
+
await act(async () => {
|
|
48
|
+
const row = await findRow(rowId, within);
|
|
49
|
+
cell = await findQuick({ tagName: `[col-id='${colId}']` }, row);
|
|
50
|
+
});
|
|
51
|
+
return cell;
|
|
47
52
|
};
|
|
48
53
|
|
|
49
54
|
export const findCellContains = async (
|
|
@@ -169,7 +174,10 @@ const typeInput = async (value: string, filter: IQueryQuick): Promise<void> =>
|
|
|
169
174
|
const openMenu = await findOpenPopover();
|
|
170
175
|
const input = await findQuick(filter, openMenu);
|
|
171
176
|
userEvent.clear(input);
|
|
172
|
-
|
|
177
|
+
//'typing' an empty string will cause a console error and it's also unnecessary after the previous clear call
|
|
178
|
+
if (value.length > 0) {
|
|
179
|
+
userEvent.type(input, value);
|
|
180
|
+
}
|
|
173
181
|
});
|
|
174
182
|
|
|
175
183
|
export const typeOnlyInput = async (value: string): Promise<void> =>
|