testaro 18.4.0 → 18.4.1

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": "18.4.0",
3
+ "version": "18.4.1",
4
4
  "description": "Run 920 web accessibility tests from 9 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  /*
2
- hrRisk
2
+ hr
3
3
  Related to ASLint test horizontal-rule.
4
4
  This test reports the existence of hr elements. Their semantics are inconsistently defined and
5
5
  interpreted and impair accessibility compared with stylistic segmentation.
@@ -31,7 +31,7 @@ exports.reporter = async (page, withItems) => {
31
31
  const elData = await getLocatorData(loc);
32
32
  // Add a standard instance.
33
33
  standardInstances.push({
34
- ruleID: 'hrRisk',
34
+ ruleID: 'hr',
35
35
  what: 'Element instead of styling is used for vertical segmentation',
36
36
  ordinalSeverity: 0,
37
37
  tagName: 'HR',
@@ -45,7 +45,7 @@ exports.reporter = async (page, withItems) => {
45
45
  if (! withItems && totals[0]) {
46
46
  // Add a summary instance.
47
47
  standardInstances.push({
48
- ruleID: 'hrRisk',
48
+ ruleID: 'hr',
49
49
  what: 'Elements instead of styling are used for vertical segmentation',
50
50
  ordinalSeverity: 0,
51
51
  count: totals[0],
package/tests/testaro.js CHANGED
@@ -25,7 +25,7 @@ const evalRules = {
25
25
  headingAmb: 'same-level sibling headings with identical texts',
26
26
  hover: 'hover-caused content changes',
27
27
  hovInd: 'hover indication nonstandard',
28
- hrRisk: 'hr element instead of styles used for vertical segmentation',
28
+ hr: 'hr element instead of styles used for vertical segmentation',
29
29
  labClash: 'labeling inconsistencies',
30
30
  lineHeight: 'text with a line height less than 1.5 times its font size',
31
31
  linkExt: 'links that automatically open new windows',
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "hrRisk",
2
+ "id": "hr",
3
3
  "what": "validation of hrRisk test",
4
4
  "strict": true,
5
5
  "timeLimit": 20,
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "type": "url",
14
- "which": "__targets__/hrRisk/index.html",
14
+ "which": "__targets__/hr/index.html",
15
15
  "what": "page with an hr element"
16
16
  },
17
17
  {
@@ -33,7 +33,7 @@
33
33
  [
34
34
  "standardResult.instances.0.ruleID",
35
35
  "=",
36
- "hrRisk"
36
+ "hr"
37
37
  ],
38
38
  [
39
39
  "standardResult.instances.0.what",
@@ -73,7 +73,7 @@
73
73
  ],
74
74
  "rules": [
75
75
  "y",
76
- "hrRisk"
76
+ "hr"
77
77
  ]
78
78
  },
79
79
  {
@@ -100,7 +100,7 @@
100
100
  [
101
101
  "standardResult.instances.0.ruleID",
102
102
  "=",
103
- "hrRisk"
103
+ "hr"
104
104
  ],
105
105
  [
106
106
  "standardResult.instances.0.what",
@@ -120,7 +120,7 @@
120
120
  ],
121
121
  "rules": [
122
122
  "y",
123
- "hrRisk"
123
+ "hr"
124
124
  ]
125
125
  }
126
126
  ],