@linzjs/step-ag-grid 7.19.4 → 7.19.5

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.4",
5
+ "version": "7.19.5",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -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
- return findQuick<HTMLDivElement>({ tagName: `div[row-id='${rowId}']:not(:empty)` }, within);
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> => {