testaro 35.0.0 → 35.0.2

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 +5 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "35.0.0",
3
+ "version": "35.0.2",
4
4
  "description": "Run 1000 web accessibility tests from 10 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/run.js CHANGED
@@ -363,7 +363,8 @@ const goTo = async (report, page, url, timeout, waitUntil) => {
363
363
  // Return an error.
364
364
  console.log(`ERROR: Visit to ${url} redirected to ${actualURL}`);
365
365
  return {
366
- exception: 'badRedirection'
366
+ success: false,
367
+ error: 'badRedirection'
367
368
  };
368
369
  }
369
370
  // Otherwise, i.e. if no prohibited redirection occurred:
@@ -523,11 +524,11 @@ const launch = async (report, typeName, url, debug, waits, isLowMotion = false)
523
524
  };
524
525
  }
525
526
  // Otherwise, if the navigation failed:
526
- else if (navResult.error) {
527
- // Return this.
527
+ else {
528
+ // Return the error.
528
529
  return {
529
530
  success: false,
530
- error: 'Navigation failed'
531
+ error: navResult.error
531
532
  };
532
533
  }
533
534
  }