testaro 8.1.14 → 8.1.16
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/call.js +1 -0
- package/package.json +1 -1
- package/run.js +2 -0
- package/watch.js +4 -2
package/call.js
CHANGED
package/package.json
CHANGED
package/run.js
CHANGED
|
@@ -1468,7 +1468,9 @@ const doActs = async (report, actIndex, page) => {
|
|
|
1468
1468
|
await doActs(report, actIndex + 1, page);
|
|
1469
1469
|
}
|
|
1470
1470
|
else {
|
|
1471
|
+
console.log('No more acts to perform; closing the browser');
|
|
1471
1472
|
await browserClose();
|
|
1473
|
+
console.log('Browser closed');
|
|
1472
1474
|
}
|
|
1473
1475
|
};
|
|
1474
1476
|
// Injects launch and url acts into a report where necessary to undo DOM changes.
|
package/watch.js
CHANGED
|
@@ -118,14 +118,16 @@ const writeNetReport = async report => {
|
|
|
118
118
|
chunks.push(chunk);
|
|
119
119
|
});
|
|
120
120
|
response.on('end', () => {
|
|
121
|
+
const content = chunks.join('');
|
|
121
122
|
try {
|
|
122
|
-
resolve(JSON.parse(
|
|
123
|
+
resolve(JSON.parse(content));
|
|
123
124
|
}
|
|
124
125
|
catch(error) {
|
|
125
126
|
resolve({
|
|
126
127
|
error: 'ERROR: Response was not JSON',
|
|
127
128
|
message: error.message,
|
|
128
|
-
status: response.statusCode
|
|
129
|
+
status: response.statusCode,
|
|
130
|
+
content: content.slice(0, 200)
|
|
129
131
|
});
|
|
130
132
|
}
|
|
131
133
|
});
|