testaro 45.0.4 → 45.0.5

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/README.md CHANGED
@@ -875,7 +875,7 @@ The rationales motivating the Testaro-defined tests can be found in comments wit
875
875
 
876
876
  ### Abnormal termination
877
877
 
878
- On some occasions a test throws an error that cannot be handled with a `try`-`catch` structure. It has been observed, for example, that the `ibm` test does this when the page content, rather than the page URL, is given to `getCompliance()` and the target is `https://globalsolutions.org` or `https://monsido.com`.
878
+ On some occasions a test throws an error that cannot be handled with a `try`-`catch` structure. It has been observed, for example, that the `ibm` test does this when the page content, rather than the page URL, is given to `getCompliance()` and the target is `https://globalsolutions.org`, `https://monsido.com`, or `https://www.ambetterhealth.com/`.
879
879
 
880
880
  Some tools take apparently infinite time to perform their tests on some pages. To handle such stalling, Testaro subjects most tools to time limits. Further testing will be required before it can be determined whether this time limitation is robust. As currently implemented (without child processes), it may allow tool testing processes to continue and to write indefinitely to the response.
881
881
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "45.0.4",
3
+ "version": "45.0.5",
4
4
  "description": "Run 1000 web accessibility tests from 10 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/procs/identify.js CHANGED
@@ -85,12 +85,17 @@ const addIDs = async (locators, recipient) => {
85
85
  };
86
86
  // Sanitizes a tag name.
87
87
  const tagify = tagName => {
88
- const lcTagName = tagName.toLowerCase();
89
- const safeTagName = lcTagName.replace(/[^a-z0-9]/g, '');
90
- if (safeTagName !== lcTagName) {
91
- console.log(`ERROR: Tag name ${tagName} invalid`);
88
+ if (tagName) {
89
+ const lcTagName = tagName.toLowerCase();
90
+ const safeTagName = lcTagName.replace(/[^a-z0-9]/g, '');
91
+ if (safeTagName !== lcTagName) {
92
+ console.log(`ERROR on page: Tag name ${tagName} invalid; treating it as ${safeTagName}`);
93
+ }
94
+ return safeTagName;
95
+ }
96
+ else {
97
+ return '';
92
98
  }
93
- return safeTagName;
94
99
  };
95
100
  // Returns the XPath and box ID of the element of a standard instance.
96
101
  exports.identify = async (instance, page) => {