@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
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> => {
|