testaro 47.1.8 → 47.2.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.
- package/package.json +1 -1
- package/tests/wax.js +7 -1
package/package.json
CHANGED
package/tests/wax.js
CHANGED
|
@@ -55,7 +55,7 @@ exports.reporter = async (page, report, actIndex, timeLimit) => {
|
|
|
55
55
|
const actReport = await doBy(
|
|
56
56
|
timeLimit, waxDev, 'runWax', [pageCode, waxOptions], 'wax report retrieval'
|
|
57
57
|
);
|
|
58
|
-
// If WAX failed:
|
|
58
|
+
// If WAX failed with a string report:
|
|
59
59
|
if (typeof actReport === 'string') {
|
|
60
60
|
// If the failure was a timeout:
|
|
61
61
|
if (actReport === 'timedOut') {
|
|
@@ -70,6 +70,12 @@ exports.reporter = async (page, report, actIndex, timeLimit) => {
|
|
|
70
70
|
data.error = actReport;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
+
// Otherwise, if it failed with an object report:
|
|
74
|
+
else if (typeof actReport === 'object' && actReport.responseCode === 500) {
|
|
75
|
+
// Report this.
|
|
76
|
+
data.prevented = true;
|
|
77
|
+
data.error = actReport.message || 'response status code 500';
|
|
78
|
+
}
|
|
73
79
|
// Otherwise, i.e. if WAX succeeded:
|
|
74
80
|
else {
|
|
75
81
|
// Populate the act report.
|