testaro 59.2.1 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tests/testaro.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "59.2.1",
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": {
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: