@linzjs/step-ag-grid 7.19.1 → 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
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "7.19.1",
5
+ "version": "7.19.2",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -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
- const row = await findRow(rowId, within);
46
- return await findQuick({ tagName: `[col-id='${colId}']` }, row);
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
- userEvent.type(input, value);
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> =>