testaro 64.10.0 → 64.11.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/run.js +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "64.10.0",
3
+ "version": "64.11.0",
4
4
  "description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/run.js CHANGED
@@ -1661,6 +1661,14 @@ const doActs = async (report, opts = {}) => {
1661
1661
  instance.pathID = elementID.pathID;
1662
1662
  }
1663
1663
  }
1664
+ // If the instance excerpt contains a unique Testaro identifier attribute:
1665
+ if (instance.excerpt.includes(' data-testaro-id="')) {
1666
+ // Delete the attribute.
1667
+ instance.excerpt = instance
1668
+ .excerpt
1669
+ .replace(/ data-testaro-id="[^" ]*("|$)/g, '')
1670
+ .replace(/ data-testaro-id="[^" ]* /g, ' ');
1671
+ }
1664
1672
  };
1665
1673
  // If the original-format result is not to be included in the report:
1666
1674
  if (standard === 'only') {