@linzjs/step-ag-grid 28.1.1 → 28.1.2

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.
@@ -135,8 +135,13 @@ export const findCellContains = async (
135
135
  };
136
136
 
137
137
  export const selectCell = async (rowId: string | number, colId: string, within?: HTMLElement): Promise<void> => {
138
- const cell = await findCell(rowId, colId, within);
139
- await user.click(cell);
138
+ await waitFor(
139
+ async () => {
140
+ const cell = await findCell(rowId, colId, within);
141
+ await user.click(cell);
142
+ },
143
+ { timeout: 10000 },
144
+ );
140
145
  };
141
146
 
142
147
  export const editCell = async (rowId: number | string, colId: string, within?: HTMLElement): Promise<void> => {
@@ -200,7 +205,7 @@ export const openAndClickMenuOption = async (
200
205
  menuOptionText: string | RegExp,
201
206
  within?: HTMLElement,
202
207
  ): Promise<void> => {
203
- await editCell(rowId, colId, within);
208
+ await selectCell(rowId, colId, within);
204
209
  await clickMenuOption(menuOptionText);
205
210
  };
206
211
 
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": "28.1.1",
5
+ "version": "28.1.2",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -135,8 +135,13 @@ export const findCellContains = async (
135
135
  };
136
136
 
137
137
  export const selectCell = async (rowId: string | number, colId: string, within?: HTMLElement): Promise<void> => {
138
- const cell = await findCell(rowId, colId, within);
139
- await user.click(cell);
138
+ await waitFor(
139
+ async () => {
140
+ const cell = await findCell(rowId, colId, within);
141
+ await user.click(cell);
142
+ },
143
+ { timeout: 10000 },
144
+ );
140
145
  };
141
146
 
142
147
  export const editCell = async (rowId: number | string, colId: string, within?: HTMLElement): Promise<void> => {
@@ -200,7 +205,7 @@ export const openAndClickMenuOption = async (
200
205
  menuOptionText: string | RegExp,
201
206
  within?: HTMLElement,
202
207
  ): Promise<void> => {
203
- await editCell(rowId, colId, within);
208
+ await selectCell(rowId, colId, within);
204
209
  await clickMenuOption(menuOptionText);
205
210
  };
206
211