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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "10.2.0",
3
+ "version": "10.3.0",
4
4
  "description": "Client that scores and digests Testaro reports",
5
5
  "main": "aim.js",
6
6
  "scripts": {
@@ -3112,7 +3112,7 @@ exports.issues = {
3112
3112
  }
3113
3113
  }
3114
3114
  },
3115
- autocompleteBad: {
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
- autocompleteNone: {
3163
+ autocompleteBad: {
3164
3164
  wcag: '1.3.5',
3165
- weight: 1,
3165
+ weight: 4,
3166
3166
  tools: {
3167
3167
  testaro: {
3168
3168
  autocomplete: {
3169
3169
  variable: false,
3170
- quality: 1,
3170
+ quality: 0.7,
3171
3171
  what: 'Name or email input is missing its required autocomplete attribute'
3172
3172
  }
3173
3173
  }
@@ -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') {