testaro 59.1.2 → 59.2.2
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 +4 -7
- package/tests/testaro.js +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testaro",
|
|
3
|
-
"version": "59.
|
|
3
|
+
"version": "59.2.2",
|
|
4
4
|
"description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
"test": "node validation/executors/test",
|
|
9
9
|
"run": "node validation/executors/run",
|
|
10
10
|
"dirWatch": "node validation/executors/dirWatch",
|
|
11
|
-
"netWatch": "node validation/executors/netWatch"
|
|
12
|
-
"postinstall": "patch-package"
|
|
11
|
+
"netWatch": "node validation/executors/netWatch"
|
|
13
12
|
},
|
|
14
13
|
"repository": {
|
|
15
14
|
"type": "git",
|
|
@@ -35,16 +34,14 @@
|
|
|
35
34
|
"@siteimprove/alfa-act": "*",
|
|
36
35
|
"@siteimprove/alfa-playwright": "*",
|
|
37
36
|
"@siteimprove/alfa-rules": "*",
|
|
38
|
-
"@wally-ax/wax-dev": "
|
|
37
|
+
"@wally-ax/wax-dev": "npm:@jrpool/wax-dev@^1.0.0",
|
|
39
38
|
"accessibility-checker": "*",
|
|
40
39
|
"aslint-testaro": "*",
|
|
41
40
|
"axe-playwright": "*",
|
|
42
41
|
"dotenv": "*",
|
|
43
|
-
"patch-package": "*",
|
|
44
42
|
"pixelmatch": "*",
|
|
45
43
|
"playwright": "*",
|
|
46
|
-
"playwright-dompath": "*"
|
|
47
|
-
"postinstall-postinstall": "*"
|
|
44
|
+
"playwright-dompath": "*"
|
|
48
45
|
},
|
|
49
46
|
"devDependencies": {
|
|
50
47
|
"eslint": "*"
|
package/tests/testaro.js
CHANGED
|
@@ -217,11 +217,16 @@ exports.reporter = async (page, report, actIndex) => {
|
|
|
217
217
|
? rules.slice(1)
|
|
218
218
|
: Object.keys(evalRules).filter(ruleID => ! rules.slice(1).includes(ruleID));
|
|
219
219
|
const calledContaminators = calledRules.filter(rule => contaminators.includes(rule)).sort();
|
|
220
|
+
const firstCalledContaminator = calledContaminators[0];
|
|
220
221
|
const calledBenignRules = calledRules.filter(rule => ! contaminators.includes(rule)).sort();
|
|
221
222
|
const testTimes = [];
|
|
222
223
|
let contaminatorsStarted = false;
|
|
223
224
|
// Starting with the noncontaminators, for each rule invoked:
|
|
224
225
|
for (const rule of calledBenignRules.concat(calledContaminators)) {
|
|
226
|
+
console.log(`Starting rule ${rule}`);
|
|
227
|
+
if (rule === firstCalledContaminator) {
|
|
228
|
+
console.log(' It is the first contaminator');
|
|
229
|
+
}
|
|
225
230
|
const pageClosed = page ? page.isClosed() : true;
|
|
226
231
|
const isContaminator = contaminators.includes(rule);
|
|
227
232
|
// If it is a contaminator other than the first one or the page has closed:
|