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 CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  high.js
3
3
  Invokes Testaro with the high-level method.
4
- Usage example: node high tp10 weborgs
4
+ Usage example: node high tp11 weborgs
5
5
  */
6
6
 
7
7
  const {runJob} = require('./create');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "4.12.0",
3
+ "version": "4.12.1",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
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.content.prevented) {
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};