@linzjs/step-ag-grid 7.17.1 → 7.18.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
@@ -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": "7.17.1",
5
+ "version": "7.18.0",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -132,6 +132,16 @@ export const openAndClickMenuOption = async (
132
132
  await clickMenuOption(menuOptionText);
133
133
  };
134
134
 
135
+ export const openAndFindMenuOption = async (
136
+ rowId: number | string,
137
+ colId: string,
138
+ menuOptionText: string | RegExp,
139
+ within?: HTMLElement,
140
+ ): Promise<HTMLElement> => {
141
+ await editCell(rowId, colId, within);
142
+ return await findMenuOption(menuOptionText);
143
+ };
144
+
135
145
  export const getMultiSelectOptions = async () => {
136
146
  const openMenu = await findOpenMenu();
137
147
  return getAllQuick<HTMLInputElement>({ role: "menuitem", child: { tagName: "input,textarea" } }, openMenu).map(