testaro 5.5.0 → 5.5.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/create.js CHANGED
@@ -121,7 +121,9 @@ exports.runJob = async (scriptID, batchID) => {
121
121
  console.log(`Reports not created:\n${JSON.stringify(timeoutHosts), null, 2}`);
122
122
  }
123
123
  if (crashHosts.length) {
124
- console.log(`Hosts crashed:\n${JSON.stringify(crashHosts), null, 2}`);
124
+ console.log(
125
+ `Hosts crashed with or without report:\n${JSON.stringify(crashHosts, null, 2)}`
126
+ );
125
127
  }
126
128
  }
127
129
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tests/hover.js CHANGED
@@ -190,12 +190,17 @@ const find = async (data, withItems, page, region, sample, popRatio) => {
190
190
  console.log(`ERROR hovering (${error.message.replace(/\n.+/s, '')})`);
191
191
  data.totals.unhoverables++;
192
192
  if (withItems) {
193
- const id = await firstTrigger.getAttribute('id');
194
- data.items[region].unhoverables.push({
195
- tagName,
196
- id: id || '',
197
- text: await textOf(firstTrigger, 50)
198
- });
193
+ try {
194
+ const id = await firstTrigger.getAttribute('id');
195
+ data.items[region].unhoverables.push({
196
+ tagName,
197
+ id: id || '',
198
+ text: await textOf(firstTrigger, 50)
199
+ });
200
+ }
201
+ catch(error) {
202
+ console.log('ERROR itemizing unhoverable element');
203
+ }
199
204
  }
200
205
  }
201
206
  }