@linzjs/step-ag-grid 7.16.1 → 7.16.3
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/dist/step-ag-grid.esm.js +54 -24
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/testUtil.ts +11 -9
package/package.json
CHANGED
package/src/utils/testUtil.ts
CHANGED
|
@@ -150,14 +150,16 @@ export const clickMultiSelectOption = async (value: string): Promise<void> => {
|
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
const typeInput = async (value: string, filter: IQueryQuick): Promise<void> => {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
await act(async () => {
|
|
154
|
+
const openMenu = await findOpenMenu();
|
|
155
|
+
const input = await findQuick(filter, openMenu);
|
|
156
|
+
userEvent.clear(input);
|
|
157
|
+
userEvent.type(input, value);
|
|
158
|
+
});
|
|
157
159
|
};
|
|
158
160
|
|
|
159
161
|
export const typeOnlyInput = async (value: string): Promise<void> => {
|
|
160
|
-
typeInput(value, { child: { tagName: "input[type='text']" } });
|
|
162
|
+
await typeInput(value, { child: { tagName: "input[type='text']" } });
|
|
161
163
|
};
|
|
162
164
|
|
|
163
165
|
export const typeInputByLabel = async (value: string, labelText: string): Promise<void> => {
|
|
@@ -168,19 +170,19 @@ export const typeInputByLabel = async (value: string, labelText: string): Promis
|
|
|
168
170
|
if (labels.length > 1) {
|
|
169
171
|
throw Error(`Multiple labels found for text: ${labelText}`);
|
|
170
172
|
}
|
|
171
|
-
typeInput(value, { child: { tagName: `input[id='${labels[0].getAttribute("for")}']` } });
|
|
173
|
+
await typeInput(value, { child: { tagName: `input[id='${labels[0].getAttribute("for")}']` } });
|
|
172
174
|
};
|
|
173
175
|
|
|
174
176
|
export const typeInputByPlaceholder = async (value: string, placeholder: string): Promise<void> => {
|
|
175
|
-
typeInput(value, { child: { tagName: `input[placeholder='${placeholder}']` } });
|
|
177
|
+
await typeInput(value, { child: { tagName: `input[placeholder='${placeholder}']` } });
|
|
176
178
|
};
|
|
177
179
|
|
|
178
180
|
export const typeOtherInput = async (value: string): Promise<void> => {
|
|
179
|
-
typeInput(value, { classes: ".subComponent", child: { tagName: "input[type='text']" } });
|
|
181
|
+
await typeInput(value, { classes: ".subComponent", child: { tagName: "input[type='text']" } });
|
|
180
182
|
};
|
|
181
183
|
|
|
182
184
|
export const typeOtherTextArea = async (value: string): Promise<void> => {
|
|
183
|
-
typeInput(value, { classes: ".subComponent", child: { tagName: "textarea" } });
|
|
185
|
+
await typeInput(value, { classes: ".subComponent", child: { tagName: "textarea" } });
|
|
184
186
|
};
|
|
185
187
|
|
|
186
188
|
export const closeMenu = (): void => {
|