testilo 10.2.0 → 10.3.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 +1 -1
- package/procs/score/tic24.js +4 -4
- package/procs/score/tsp24.js +7 -0
package/package.json
CHANGED
package/procs/score/tic24.js
CHANGED
|
@@ -3112,7 +3112,7 @@ exports.issues = {
|
|
|
3112
3112
|
}
|
|
3113
3113
|
}
|
|
3114
3114
|
},
|
|
3115
|
-
|
|
3115
|
+
autocompleteInvalid: {
|
|
3116
3116
|
wcag: '1.3.5',
|
|
3117
3117
|
weight: 3,
|
|
3118
3118
|
tools: {
|
|
@@ -3160,14 +3160,14 @@ exports.issues = {
|
|
|
3160
3160
|
}
|
|
3161
3161
|
}
|
|
3162
3162
|
},
|
|
3163
|
-
|
|
3163
|
+
autocompleteBad: {
|
|
3164
3164
|
wcag: '1.3.5',
|
|
3165
|
-
weight:
|
|
3165
|
+
weight: 4,
|
|
3166
3166
|
tools: {
|
|
3167
3167
|
testaro: {
|
|
3168
3168
|
autocomplete: {
|
|
3169
3169
|
variable: false,
|
|
3170
|
-
quality:
|
|
3170
|
+
quality: 0.7,
|
|
3171
3171
|
what: 'Name or email input is missing its required autocomplete attribute'
|
|
3172
3172
|
}
|
|
3173
3173
|
}
|
package/procs/score/tsp24.js
CHANGED
|
@@ -316,6 +316,13 @@ exports.scorer = async report => {
|
|
|
316
316
|
addDetail('testaro', which, score);
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
+
else if (which === 'autocomplete') {
|
|
320
|
+
const count = test.result && test.result.total;
|
|
321
|
+
if (typeof count === 'number') {
|
|
322
|
+
// Add 4 per autocomplete violation.
|
|
323
|
+
addDetail('testaro', which, 4 * count);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
319
326
|
else if (which === 'bulk') {
|
|
320
327
|
const count = test.result && test.result.visibleElements;
|
|
321
328
|
if (typeof count === 'number') {
|