@linzjs/step-ag-grid 17.0.3 → 17.0.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": "17.0.3",
5
+ "version": "17.0.5",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -216,12 +216,12 @@ export const clickActionButton = async (text: string, container?: HTMLElement):
216
216
  await user.click(button);
217
217
  };
218
218
 
219
- export const waitForGridReady = async ({ grid, timeout = 5000 }: { grid?: HTMLElement; timeout: number }) =>
220
- waitFor(() => expect(getAllQuick({ classes: ".Grid-ready" }, grid)).toBeInTheDocument(), {
221
- timeout,
219
+ export const waitForGridReady = async (props?: { grid?: HTMLElement; timeout?: number }) =>
220
+ waitFor(() => expect(getAllQuick({ classes: ".Grid-ready" }, props?.grid)).toBeInTheDocument(), {
221
+ timeout: props?.timeout ?? 5000,
222
222
  });
223
223
 
224
- export const waitForGridRows = async ({ grid, timeout = 5000 }: { grid?: HTMLElement; timeout: number }) =>
225
- waitFor(async () => expect(getAllQuick({ classes: ".ag-row" }, grid).length > 0).toBe(true), {
226
- timeout,
224
+ export const waitForGridRows = async (props?: { grid?: HTMLElement; timeout?: number }) =>
225
+ waitFor(async () => expect(getAllQuick({ classes: ".ag-row" }, props?.grid).length > 0).toBe(true), {
226
+ timeout: props?.timeout ?? 5000,
227
227
  });