@linzjs/step-ag-grid 15.1.1 → 15.1.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/package.json
CHANGED
package/src/utils/testQuick.ts
CHANGED
|
@@ -70,7 +70,15 @@ const quickSelector = <T extends HTMLElement>(
|
|
|
70
70
|
els = els.filter(matcher);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
return {
|
|
73
|
+
return {
|
|
74
|
+
selector: [
|
|
75
|
+
selector,
|
|
76
|
+
typeof lastIQueryQuick.text == "string" ? JSON.stringify(lastIQueryQuick.text) : lastIQueryQuick.text,
|
|
77
|
+
]
|
|
78
|
+
.filter((r) => r)
|
|
79
|
+
.join(" "),
|
|
80
|
+
els,
|
|
81
|
+
};
|
|
74
82
|
};
|
|
75
83
|
|
|
76
84
|
/**
|
|
@@ -110,7 +118,7 @@ export const queryAllQuick = <T extends HTMLElement>(filter: IQueryQuick, contai
|
|
|
110
118
|
export const getAllQuick = <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement): T[] => {
|
|
111
119
|
const els = queryAllQuick(filter, container);
|
|
112
120
|
if (els.length == 0) {
|
|
113
|
-
throw Error(`getAllQuick not found, selector: ${quickSelector(filter)}`);
|
|
121
|
+
throw Error(`getAllQuick not found, selector: ${quickSelector(filter).selector}`);
|
|
114
122
|
}
|
|
115
123
|
return els as T[];
|
|
116
124
|
};
|
package/src/utils/testUtil.ts
CHANGED
|
@@ -202,8 +202,8 @@ export const typeOtherInput = async (value: string): Promise<void> =>
|
|
|
202
202
|
export const typeOtherTextArea = async (value: string): Promise<void> =>
|
|
203
203
|
typeInput(value, { classes: ".subComponent", child: { tagName: "textarea" } });
|
|
204
204
|
|
|
205
|
-
export const closeMenu = () =>
|
|
206
|
-
export const closePopover = () =>
|
|
205
|
+
export const closeMenu = () => user.click(document.body);
|
|
206
|
+
export const closePopover = () => user.click(document.body);
|
|
207
207
|
|
|
208
208
|
export const findActionButton = (text: string, container?: HTMLElement): Promise<HTMLElement> =>
|
|
209
209
|
findQuick({ tagName: "button", child: { classes: ".ActionButton-minimalAreaDisplay", text: text } }, container);
|