testaro 5.12.2 → 5.12.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 +1 -1
- package/run.js +9 -1
package/package.json
CHANGED
package/run.js
CHANGED
|
@@ -24,7 +24,7 @@ const moves = {
|
|
|
24
24
|
focus: true,
|
|
25
25
|
link: 'a, [role=link]',
|
|
26
26
|
radio: 'input[type=radio]',
|
|
27
|
-
search: 'input[type=search]',
|
|
27
|
+
search: 'input[type=search], input[type=text][aria-label*=search i]',
|
|
28
28
|
select: 'select',
|
|
29
29
|
text: 'input[type=text]'
|
|
30
30
|
};
|
|
@@ -1162,6 +1162,14 @@ const doActs = async (report, actIndex, page) => {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
// Otherwise, if it is entering text on a text- or search-input element:
|
|
1164
1164
|
else if (['text', 'search'].includes(act.type)) {
|
|
1165
|
+
act.result.attributes = {};
|
|
1166
|
+
const {attributes} = act.result;
|
|
1167
|
+
const type = await selection.getAttribute('type');
|
|
1168
|
+
const label = await selection.getAttribute('aria-label');
|
|
1169
|
+
const labelRefs = await selection.getAttribute('aria-labelledby');
|
|
1170
|
+
attributes.type = type || '';
|
|
1171
|
+
attributes.label = label || '';
|
|
1172
|
+
attributes.labelRefs = labelRefs || '';
|
|
1165
1173
|
// If the text contains a placeholder for an environment variable:
|
|
1166
1174
|
let {what} = act;
|
|
1167
1175
|
if (/__[A-Z]+__/.test(what)) {
|