@linzjs/step-ag-grid 7.3.2 → 7.4.0
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
|
@@ -3,6 +3,10 @@ import userEvent from "@testing-library/user-event";
|
|
|
3
3
|
import { findQuick, getAllQuick, getMatcher, getQuick, queryQuick } from "./testQuick";
|
|
4
4
|
import { wait } from "./util";
|
|
5
5
|
|
|
6
|
+
export const countRows = async (within?: HTMLElement): Promise<number> => {
|
|
7
|
+
return getAllQuick({ tagName: `div[row-id]:not(:empty)` }, within).length;
|
|
8
|
+
};
|
|
9
|
+
|
|
6
10
|
export const findRow = async (rowId: number | string, within?: HTMLElement): Promise<HTMLDivElement> => {
|
|
7
11
|
return findQuick<HTMLDivElement>({ tagName: `div[row-id='${rowId}']:not(:empty)` }, within);
|
|
8
12
|
};
|
|
@@ -36,7 +40,7 @@ export const findCell = async (rowId: number | string, colId: string, within?: H
|
|
|
36
40
|
return await findQuick({ tagName: `[col-id='${colId}']` }, row);
|
|
37
41
|
};
|
|
38
42
|
|
|
39
|
-
export const
|
|
43
|
+
export const findCellContains = async (
|
|
40
44
|
rowId: number | string,
|
|
41
45
|
colId: string,
|
|
42
46
|
text: string | RegExp,
|