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.
- package/package.json +1 -1
- package/run.js +5 -4
package/package.json
CHANGED
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
|
-
|
|
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
|
|
527
|
-
// Return
|
|
527
|
+
else {
|
|
528
|
+
// Return the error.
|
|
528
529
|
return {
|
|
529
530
|
success: false,
|
|
530
|
-
error:
|
|
531
|
+
error: navResult.error
|
|
531
532
|
};
|
|
532
533
|
}
|
|
533
534
|
}
|