testaro 8.1.14 → 8.1.16

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 (4) hide show
  1. package/call.js +1 -0
  2. package/package.json +1 -1
  3. package/run.js +2 -0
  4. package/watch.js +4 -2
package/call.js CHANGED
@@ -54,6 +54,7 @@ else if (fn === 'watch' && fnArgs.length === 3) {
54
54
  callWatch(... fnArgs)
55
55
  .then(() => {
56
56
  console.log('Execution completed');
57
+ process.exit(0);
57
58
  });
58
59
  }
59
60
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "8.1.14",
3
+ "version": "8.1.16",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/run.js CHANGED
@@ -1468,7 +1468,9 @@ const doActs = async (report, actIndex, page) => {
1468
1468
  await doActs(report, actIndex + 1, page);
1469
1469
  }
1470
1470
  else {
1471
+ console.log('No more acts to perform; closing the browser');
1471
1472
  await browserClose();
1473
+ console.log('Browser closed');
1472
1474
  }
1473
1475
  };
1474
1476
  // Injects launch and url acts into a report where necessary to undo DOM changes.
package/watch.js CHANGED
@@ -118,14 +118,16 @@ const writeNetReport = async report => {
118
118
  chunks.push(chunk);
119
119
  });
120
120
  response.on('end', () => {
121
+ const content = chunks.join('');
121
122
  try {
122
- resolve(JSON.parse(chunks.join('')));
123
+ resolve(JSON.parse(content));
123
124
  }
124
125
  catch(error) {
125
126
  resolve({
126
127
  error: 'ERROR: Response was not JSON',
127
128
  message: error.message,
128
- status: response.statusCode
129
+ status: response.statusCode,
130
+ content: content.slice(0, 200)
129
131
  });
130
132
  }
131
133
  });