@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
|
-
|
|
139
|
-
|
|
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
|
|
208
|
+
await selectCell(rowId, colId, within);
|
|
204
209
|
await clickMenuOption(menuOptionText);
|
|
205
210
|
};
|
|
206
211
|
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
139
|
-
|
|
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
|
|
208
|
+
await selectCell(rowId, colId, within);
|
|
204
209
|
await clickMenuOption(menuOptionText);
|
|
205
210
|
};
|
|
206
211
|
|