testaro 59.0.1 → 59.0.3

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 +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "59.0.1",
3
+ "version": "59.0.3",
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
@@ -140,6 +140,7 @@ const slowTestLimits = {
140
140
  distortion: 10,
141
141
  docType: 10,
142
142
  focAll: 10,
143
+ focInd: 10,
143
144
  focVis: 10,
144
145
  hover: 10,
145
146
  hovInd: 10,
@@ -221,7 +222,7 @@ exports.reporter = async (page, report, actIndex) => {
221
222
  let contaminatorsStarted = false;
222
223
  // Starting with the noncontaminators, for each rule invoked:
223
224
  for (const rule of calledBenignRules.concat(calledContaminators)) {
224
- const pageClosed = page.isClosed();
225
+ const pageClosed = page ? page.isClosed() : true;
225
226
  const isContaminator = contaminators.includes(rule);
226
227
  // If it is a contaminator other than the first one or the page has closed:
227
228
  if (contaminatorsStarted || pageClosed) {