testaro 14.9.5 → 14.9.7

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": "testaro",
3
- "version": "14.9.5",
3
+ "version": "14.9.7",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/standardize.js CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  // Limits the length of and unilinearizes a string.
9
9
  const cap = rawString => {
10
- const string = rawString.replace(/\s+/g, ' ');
10
+ const string = (rawString || '').replace(/[\s\u2028\u2029]+/g, ' ');
11
11
  if (string && string.length > 400) {
12
12
  return `${string.slice(0, 200)} ... ${string.slice(-200)}`;
13
13
  }
@@ -59,7 +59,7 @@ const doAxe = (result, standardResult, certainty) => {
59
59
  const identifiers = getIdentifiers(node.html);
60
60
  const instance = {
61
61
  ruleID: rule.id,
62
- what: Array.from(whatSet.values()).join('; '),
62
+ what: Array.from(whatSet.values()).join('; '),
63
63
  ordinalSeverity,
64
64
  tagName: identifiers[0],
65
65
  id: identifiers[1],
package/testaro/filter.js CHANGED
@@ -56,7 +56,7 @@ exports.reporter = async (page, withItems) => {
56
56
  ruleID: 'filterStyle',
57
57
  what: `${item.tagName} element has a filter style that impacts ${item.impact} elements`,
58
58
  ordinalSeverity: 2,
59
- tagName: item.toUpperCase(),
59
+ tagName: item.tagName.toUpperCase(),
60
60
  id: item.id,
61
61
  location: {
62
62
  doc: '',
package/testaro/hover.js CHANGED
@@ -5,7 +5,7 @@
5
5
  The elements that are subjected to hovering (called “triggers”) are the Playwright-visible
6
6
  elements that have 'A', 'BUTTON', or 'LI' tag names or have 'onmouseenter' or 'onmouseover'
7
7
  attributes.
8
-
8
+
9
9
  The test examines how the hover event is indicated to the user with the mouse cursor and with
10
10
  changes of the styles of the trigger.
11
11
 
@@ -408,7 +408,6 @@ exports.reporter = async (page, withItems, sampleSize = 20) => {
408
408
  standardInstances.push({
409
409
  ruleID: 'hover',
410
410
  what: what[issue],
411
- count: data.totals[issue],
412
411
  ordinalSeverity: severity[issue],
413
412
  tagName: item.tagName,
414
413
  id: item.id,