testaro 28.1.4 → 28.1.6

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/README.md CHANGED
@@ -387,6 +387,18 @@ An act of type `test` performs the tests of a tool and reports a result. The res
387
387
 
388
388
  The `which` property of a `test` act identifies a tool, such as `alfa` or `testaro`.
389
389
 
390
+ ##### Target modification
391
+
392
+ Some tools modify the page, so isolation of tests from one another requires that a browser be relaunched or, at least, navigate to the URL again, after a test act running any of those tools before a test act running another tool.
393
+
394
+ Of the 9 tools, 6 are target-modifying:
395
+ - `alfa`
396
+ - `aslint`
397
+ - `axe`
398
+ - `htmlcs`
399
+ - `ibm`
400
+ - `testaro`
401
+
390
402
  ###### Configuration
391
403
 
392
404
  Every tool invoked by Testaro must have:
package/dirWatch.js CHANGED
@@ -33,7 +33,7 @@ const reWatch = () => {
33
33
  }
34
34
  }
35
35
  if (code === 0) {
36
- console.log('Watcher exited successfully');
36
+ console.log('Watcher exited successfully\n');
37
37
  reWatch();
38
38
  }
39
39
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "28.1.4",
3
+ "version": "28.1.6",
4
4
  "description": "Run 960 web accessibility tests from 9 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/run.js CHANGED
@@ -200,7 +200,7 @@ const isValidReport = report => {
200
200
  if (typeof timeLimit !== 'number' || timeLimit < 1) {
201
201
  return 'Bad report time limit';
202
202
  }
203
- if (! acts || ! Array.isArray(acts) || acts.length < 2) {
203
+ if (! acts || ! Array.isArray(acts) || ! acts.length) {
204
204
  return 'Bad report acts';
205
205
  }
206
206
  if (! acts.every(act => act.type && typeof act.type === 'string')) {
@@ -437,7 +437,7 @@ const addError = (act, error, message) => {
437
437
  };
438
438
  // Recursively performs the acts in a report.
439
439
  const doActs = async (report, actIndex, page) => {
440
- // Quits and reports the performance being aborted.
440
+ // Quits and reports the job being aborted.
441
441
  const abortActs = async () => {
442
442
  // Add data on the aborted act to the report.
443
443
  report.jobData.abortTime = nowString();
@@ -447,8 +447,6 @@ const doActs = async (report, actIndex, page) => {
447
447
  actIndex = -2;
448
448
  // Report this.
449
449
  console.log('ERROR: Job aborted');
450
- // Stop the action until the user resumes it.
451
- await page.pause();
452
450
  };
453
451
  process.on('message', message => {
454
452
  if (message === 'interrupt') {