testaro 4.12.0 → 4.12.1
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/high.js +1 -1
- package/package.json +1 -1
- package/run.js +1 -0
- package/tests/ibm.js +3 -2
package/high.js
CHANGED
package/package.json
CHANGED
package/run.js
CHANGED
|
@@ -239,6 +239,7 @@ const isValidReport = async report => {
|
|
|
239
239
|
const closeBrowser = async () => {
|
|
240
240
|
const browser = browserContext && browserContext.browser();
|
|
241
241
|
if (browser) {
|
|
242
|
+
console.log(`Closing browser, version ${browser.version()}`);
|
|
242
243
|
await browser.close();
|
|
243
244
|
}
|
|
244
245
|
};
|
package/tests/ibm.js
CHANGED
|
@@ -88,7 +88,6 @@ const doTest = async (content, withItems, timeLimit) => {
|
|
|
88
88
|
return ibmTypeReport;
|
|
89
89
|
}
|
|
90
90
|
else {
|
|
91
|
-
console.log('ERROR: getting ibm test report took too long');
|
|
92
91
|
return {
|
|
93
92
|
prevented: true,
|
|
94
93
|
error: 'ERROR: getting ibm test report took too long'
|
|
@@ -105,6 +104,7 @@ exports.reporter = async (page, withItems, withNewContent) => {
|
|
|
105
104
|
result.content = await doTest(typeContent, withItems, timeLimit);
|
|
106
105
|
if (result.content.prevented) {
|
|
107
106
|
result.prevented = true;
|
|
107
|
+
console.log('ERROR: Getting ibm test report from page took too long');
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
// If a test with new content is to be performed:
|
|
@@ -112,8 +112,9 @@ exports.reporter = async (page, withItems, withNewContent) => {
|
|
|
112
112
|
const timeLimit = 20;
|
|
113
113
|
const typeContent = page.url();
|
|
114
114
|
result.url = await doTest(typeContent, withItems, timeLimit);
|
|
115
|
-
if (result.
|
|
115
|
+
if (result.url.prevented) {
|
|
116
116
|
result.prevented = true;
|
|
117
|
+
console.log('ERROR: Getting ibm test report from URL took too long');
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
return {result};
|