testaro 57.2.0 → 57.3.0

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/run.js +11 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "57.2.0",
3
+ "version": "57.3.0",
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/run.js CHANGED
@@ -356,15 +356,15 @@ const launch = exports.launch = async (report, debug, waits, tempBrowserID, temp
356
356
  }
357
357
  // Otherwise, i.e. if the launch or navigation failed:
358
358
  else {
359
- // Report this and nullify the page.
360
- addError(true, true, report, actIndex, `ERROR: Launch failed (${navResult.error})`);
359
+ // Report this.
360
+ addError(true, false, report, actIndex, `ERROR: Launch failed (${navResult.error})`);
361
361
  page = null;
362
362
  }
363
363
  }
364
364
  // If an error occurred:
365
365
  catch(error) {
366
366
  // Report this.
367
- addError(true, true, report, actIndex, `ERROR launching or navigating ${error.message}`);
367
+ addError(true, false, report, actIndex, `ERROR launching or navigating ${error.message}`);
368
368
  page = null;
369
369
  };
370
370
  }
@@ -783,13 +783,13 @@ const doActs = async (report) => {
783
783
  // If a prohibited redirection occurred:
784
784
  if (response.exception === 'badRedirection') {
785
785
  // Report this and abort the job.
786
- addError(true, true, report, actIndex, 'ERROR: Navigation illicitly redirected');
786
+ addError(true, false, report, actIndex, 'ERROR: Navigation illicitly redirected');
787
787
  }
788
788
  }
789
789
  // Otherwise, i.e. if the visit failed:
790
790
  else {
791
- // Report this and abort the job.
792
- addError(true, true, report, actIndex, 'ERROR: Visit failed');
791
+ // Report this.
792
+ addError(true, false, report, actIndex, 'ERROR: Visit failed');
793
793
  }
794
794
  }
795
795
  // Otherwise, if the act is a wait for text:
@@ -871,7 +871,7 @@ const doActs = async (report) => {
871
871
  .catch(async error => {
872
872
  // Report this and abort the job.
873
873
  console.log(`ERROR waiting for page to be ${act.which} (${error.message})`);
874
- addError(true, true, report, actIndex, `ERROR waiting for page to be ${act.which}`);
874
+ addError(true, false, report, actIndex, `ERROR waiting for page to be ${act.which}`);
875
875
  });
876
876
  // If the wait succeeded:
877
877
  if (actIndex > -2) {
@@ -1015,7 +1015,7 @@ const doActs = async (report) => {
1015
1015
  // If the move fails:
1016
1016
  catch(error) {
1017
1017
  // Add the error result to the act and abort the job.
1018
- addError(true, true, report, actIndex, `ERROR: ${move} failed`);
1018
+ addError(true, false, report, actIndex, `ERROR: ${move} failed`);
1019
1019
  }
1020
1020
  if (act.result.success) {
1021
1021
  try {
@@ -1349,19 +1349,19 @@ const doActs = async (report) => {
1349
1349
  // Otherwise, i.e. if the act type is unknown:
1350
1350
  else {
1351
1351
  // Add the error result to the act and abort the job.
1352
- addError(true, true, report, actIndex, 'ERROR: Invalid act type');
1352
+ addError(true, false, report, actIndex, 'ERROR: Invalid act type');
1353
1353
  }
1354
1354
  }
1355
1355
  // Otherwise, a page URL is required but does not exist, so:
1356
1356
  else {
1357
1357
  // Add an error result to the act and abort the job.
1358
- addError(true, true, report, actIndex, 'ERROR: Page has no URL');
1358
+ addError(true, false, report, actIndex, 'ERROR: Page has no URL');
1359
1359
  }
1360
1360
  }
1361
1361
  // Otherwise, i.e. if no page exists:
1362
1362
  else {
1363
1363
  // Add an error result to the act and abort the job.
1364
- addError(true, true, report, actIndex, 'ERROR: No page identified');
1364
+ addError(true, false, report, actIndex, 'ERROR: No page identified');
1365
1365
  }
1366
1366
  // Add the end time to the act.
1367
1367
  act.endTime = Date.now();