@linzjs/step-ag-grid 17.0.3 → 17.0.4
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.
|
@@ -35,11 +35,11 @@ export declare const closeMenu: () => Promise<void>;
|
|
|
35
35
|
export declare const closePopover: () => Promise<void>;
|
|
36
36
|
export declare const findActionButton: (text: string, container?: HTMLElement) => Promise<HTMLElement>;
|
|
37
37
|
export declare const clickActionButton: (text: string, container?: HTMLElement) => Promise<void>;
|
|
38
|
-
export declare const waitForGridReady: (
|
|
39
|
-
grid?: HTMLElement
|
|
38
|
+
export declare const waitForGridReady: (props?: {
|
|
39
|
+
grid?: HTMLElement;
|
|
40
40
|
timeout: number;
|
|
41
41
|
}) => Promise<void>;
|
|
42
|
-
export declare const waitForGridRows: (
|
|
43
|
-
grid?: HTMLElement
|
|
42
|
+
export declare const waitForGridRows: (props?: {
|
|
43
|
+
grid?: HTMLElement;
|
|
44
44
|
timeout: number;
|
|
45
45
|
}) => Promise<void>;
|
package/dist/step-ag-grid.cjs.js
CHANGED
|
@@ -25664,11 +25664,11 @@ const clickActionButton = async (text, container) => {
|
|
|
25664
25664
|
const button = await findActionButton(text, container);
|
|
25665
25665
|
await user.click(button);
|
|
25666
25666
|
};
|
|
25667
|
-
const waitForGridReady = async (
|
|
25668
|
-
timeout,
|
|
25667
|
+
const waitForGridReady = async (props) => waitForWrapper(() => expect(getAllQuick({ classes: ".Grid-ready" }, props?.grid)).toBeInTheDocument(), {
|
|
25668
|
+
timeout: props?.timeout ?? 5000,
|
|
25669
25669
|
});
|
|
25670
|
-
const waitForGridRows = async (
|
|
25671
|
-
timeout,
|
|
25670
|
+
const waitForGridRows = async (props) => waitForWrapper(async () => expect(getAllQuick({ classes: ".ag-row" }, props?.grid).length > 0).toBe(true), {
|
|
25671
|
+
timeout: props?.timeout ?? 5000,
|
|
25672
25672
|
});
|
|
25673
25673
|
|
|
25674
25674
|
exports.ActionButton = ActionButton;
|