testaro 78.0.6 → 78.0.8
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/CLAUDE.md +1 -1
- package/CONTAINERS.md +1 -0
- package/README.md +2 -1
- package/netWatch.js +1 -0
- package/package.json +1 -1
- package/procs/catalog.js +1 -0
- package/procs/config.js +1 -0
- package/procs/getSource.js +1 -0
- package/procs/job.js +1 -0
- package/procs/nu.js +1 -0
- package/procs/shoot.js +3 -1
- package/procs/testaro.js +1 -0
- package/procs/xPath.js +6 -0
- package/testaro/adbID.js +1 -0
- package/testaro/allCapStyle.js +1 -0
- package/testaro/allHidden.js +1 -0
- package/testaro/allSlanted.js +1 -0
- package/testaro/altScheme.js +1 -0
- package/testaro/attVal.js +1 -0
- package/testaro/autocomplete.js +1 -0
- package/testaro/bulk.js +1 -0
- package/testaro/buttonMenu.js +1 -0
- package/testaro/captionLoc.js +1 -0
- package/testaro/datalistRef.js +1 -0
- package/testaro/distortion.js +1 -0
- package/testaro/docType.js +1 -0
- package/testaro/dupAtt.js +1 -0
- package/testaro/embAc.js +1 -0
- package/testaro/focAll.js +1 -0
- package/testaro/focAndOp.js +1 -0
- package/testaro/focInd.js +1 -0
- package/testaro/focVis.js +1 -0
- package/testaro/headEl.js +1 -0
- package/testaro/headingAmb.js +1 -0
- package/testaro/hovInd.js +1 -0
- package/testaro/hover.js +1 -0
- package/testaro/hr.js +1 -0
- package/testaro/imageLink.js +1 -0
- package/testaro/labClash.js +1 -0
- package/testaro/legendLoc.js +1 -0
- package/testaro/lineHeight.js +1 -0
- package/testaro/linkAmb.js +1 -0
- package/testaro/linkExt.js +1 -0
- package/testaro/linkOldAtt.js +1 -0
- package/testaro/linkTo.js +1 -0
- package/testaro/linkUl.js +1 -0
- package/testaro/miniText.js +1 -0
- package/testaro/motion.js +1 -0
- package/testaro/nonTable.js +1 -0
- package/testaro/optRoleSel.js +1 -0
- package/testaro/phOnly.js +1 -0
- package/testaro/pseudoP.js +1 -0
- package/testaro/radioSet.js +1 -0
- package/testaro/role.js +1 -0
- package/testaro/secHeading.js +1 -0
- package/testaro/styleDiff.js +1 -0
- package/testaro/tabNav.js +1 -0
- package/testaro/targetsNear.js +1 -0
- package/testaro/textSem.js +1 -0
- package/testaro/titledEl.js +1 -0
- package/testaro/zIndex.js +1 -0
- package/tests/alfa.js +1 -0
- package/tests/aslint.js +1 -0
- package/tests/axe.js +1 -0
- package/tests/ed11y.js +1 -0
- package/tests/htmlcs.js +1 -0
- package/tests/ibm.js +1 -0
- package/tests/nuVnu.js +1 -0
- package/tests/qualWeb.js +1 -0
- package/tests/testaro.js +1 -0
- package/tests/wave.js +1 -0
- package/validation/validateTest.js +1 -1
- package/memory/MEMORY.md +0 -3
- package/memory/project_validation_pause.md +0 -10
package/CLAUDE.md
CHANGED
|
@@ -59,7 +59,7 @@ Two implementation patterns exist:
|
|
|
59
59
|
|
|
60
60
|
### Validation
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
A revision of the validation architecture is currently being planned. In the meantime the next paragraph describes its current design, not guaranteed to work without error.
|
|
63
63
|
|
|
64
64
|
Validation tests live in `validation/tests/jobs/` (jobs with `expect` arrays) and `validation/tests/targets/` (static HTML pages served locally as test targets). Running `npm test <ruleID>` executes `validation/executors/test.js` → `validation/validateTest.js`, which runs the job and compares `result` fields against `expect` clauses.
|
|
65
65
|
|
package/CONTAINERS.md
CHANGED
package/README.md
CHANGED
|
@@ -141,7 +141,7 @@ Here is a sample job, showing properties that you can set:
|
|
|
141
141
|
what: 'monthly health check', // Job description
|
|
142
142
|
strict: true, // Whether to reject redirections from the target URL
|
|
143
143
|
standard: 'only', // Report native (no), standard (only), or both (also) results
|
|
144
|
-
imageColor: 0, // Color type (0, 2, 4, 6)
|
|
144
|
+
imageColor: 0, // Color type (0 (grayscale), 2 (RGB), 4 (grayscale alpha), 6 (RGBA)) if initial page image required
|
|
145
145
|
imageScale: 2, // Optional: also capture the page image at this device pixel density (see the images section)
|
|
146
146
|
device: { // Device to emulate
|
|
147
147
|
id: 'iPhone 8',
|
|
@@ -663,6 +663,7 @@ Future work contemplated for this project is described in its [issues](https://g
|
|
|
663
663
|
## License
|
|
664
664
|
|
|
665
665
|
© 2021–2025 CVS Health and/or one of its affiliates. All rights reserved.
|
|
666
|
+
© 2026 Jeff Witt.
|
|
666
667
|
© 2025–2026 Jonathan Robert Pool.
|
|
667
668
|
|
|
668
669
|
Licensed under the [MIT License](https://opensource.org/license/mit/). See [LICENSE](../../LICENSE) file at the project root for details.
|
package/netWatch.js
CHANGED
package/package.json
CHANGED
package/procs/catalog.js
CHANGED
package/procs/config.js
CHANGED
package/procs/getSource.js
CHANGED
package/procs/job.js
CHANGED
package/procs/nu.js
CHANGED
package/procs/shoot.js
CHANGED
|
@@ -57,7 +57,9 @@ exports.shoot = async (page, report, {
|
|
|
57
57
|
scale = 'css'
|
|
58
58
|
} = {}) => {
|
|
59
59
|
// Make and get a screenshot as a buffer.
|
|
60
|
-
let shot = await screenShot(
|
|
60
|
+
let shot = await screenShot(
|
|
61
|
+
page, exclusionSelector ? page.locator(exclusionSelector) : null, scale
|
|
62
|
+
);
|
|
61
63
|
// If it succeeded:
|
|
62
64
|
if (shot.length) {
|
|
63
65
|
// Get the screenshot as an object representation of a PNG image.
|
package/procs/testaro.js
CHANGED
package/procs/xPath.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
+
© 2026 Jeff Witt.
|
|
3
4
|
© 2026 Jonathan Robert Pool.
|
|
4
5
|
|
|
5
6
|
Licensed under the MIT License. See LICENSE file at the project root or
|
|
@@ -57,6 +58,11 @@ exports.getNormalizedXPath = xPath => {
|
|
|
57
58
|
};
|
|
58
59
|
// Gets an XPath from a data-xpath attribute in an HTML excerpt.
|
|
59
60
|
exports.getAttributeXPath = html => {
|
|
61
|
+
// If there is no excerpt (e.g. a Nu Html Checker message without an extract):
|
|
62
|
+
if (! html) {
|
|
63
|
+
// Return the fallback XPath, as for an excerpt without a data-xpath attribute.
|
|
64
|
+
return '/html';
|
|
65
|
+
}
|
|
60
66
|
const match = html.match(/ data-xpath="([^" ]+)"/);
|
|
61
67
|
return match ? match[1] : '/html';
|
|
62
68
|
};
|
package/testaro/adbID.js
CHANGED
package/testaro/allCapStyle.js
CHANGED
package/testaro/allHidden.js
CHANGED
package/testaro/allSlanted.js
CHANGED
package/testaro/altScheme.js
CHANGED
package/testaro/attVal.js
CHANGED
package/testaro/autocomplete.js
CHANGED
package/testaro/bulk.js
CHANGED
package/testaro/buttonMenu.js
CHANGED
package/testaro/captionLoc.js
CHANGED
package/testaro/datalistRef.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2025 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
© 2025 Juan S. Casado.
|
|
4
|
+
© 2026 Jeff Witt.
|
|
4
5
|
© 2025–2026 Jonathan Robert Pool.
|
|
5
6
|
|
|
6
7
|
Licensed under the MIT License. See LICENSE file at the project root or https://opensource.org/license/mit/ for details.
|
package/testaro/distortion.js
CHANGED
package/testaro/docType.js
CHANGED
package/testaro/dupAtt.js
CHANGED
package/testaro/embAc.js
CHANGED
package/testaro/focAll.js
CHANGED
package/testaro/focAndOp.js
CHANGED
package/testaro/focInd.js
CHANGED
package/testaro/focVis.js
CHANGED
package/testaro/headEl.js
CHANGED
package/testaro/headingAmb.js
CHANGED
package/testaro/hovInd.js
CHANGED
package/testaro/hover.js
CHANGED
package/testaro/hr.js
CHANGED
package/testaro/imageLink.js
CHANGED
package/testaro/labClash.js
CHANGED
package/testaro/legendLoc.js
CHANGED
package/testaro/lineHeight.js
CHANGED
package/testaro/linkAmb.js
CHANGED
package/testaro/linkExt.js
CHANGED
package/testaro/linkOldAtt.js
CHANGED
package/testaro/linkTo.js
CHANGED
package/testaro/linkUl.js
CHANGED
package/testaro/miniText.js
CHANGED
package/testaro/motion.js
CHANGED
package/testaro/nonTable.js
CHANGED
package/testaro/optRoleSel.js
CHANGED
package/testaro/phOnly.js
CHANGED
package/testaro/pseudoP.js
CHANGED
package/testaro/radioSet.js
CHANGED
package/testaro/role.js
CHANGED
package/testaro/secHeading.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2025 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
© 2025 Juan S. Casado.
|
|
4
|
+
© 2026 Jeff Witt.
|
|
4
5
|
© 2025–2026 Jonathan Robert Pool.
|
|
5
6
|
|
|
6
7
|
Licensed under the MIT License. See LICENSE file at the project root or https://opensource.org/license/mit/ for details.
|
package/testaro/styleDiff.js
CHANGED
package/testaro/tabNav.js
CHANGED
package/testaro/targetsNear.js
CHANGED
package/testaro/textSem.js
CHANGED
package/testaro/titledEl.js
CHANGED
package/testaro/zIndex.js
CHANGED
package/tests/alfa.js
CHANGED
package/tests/aslint.js
CHANGED
package/tests/axe.js
CHANGED
package/tests/ed11y.js
CHANGED
package/tests/htmlcs.js
CHANGED
package/tests/ibm.js
CHANGED
package/tests/nuVnu.js
CHANGED
package/tests/qualWeb.js
CHANGED
package/tests/testaro.js
CHANGED
package/tests/wave.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2022–2025 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
-
© 2025 Jonathan Robert Pool.
|
|
3
|
+
© 2025–2026 Jonathan Robert Pool.
|
|
4
4
|
|
|
5
5
|
Licensed under the MIT License. See LICENSE file at the project root or
|
|
6
6
|
https://opensource.org/license/mit/ for details.
|
package/memory/MEMORY.md
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Validation system paused
|
|
3
|
-
description: All new validation test work is on hold pending a redesign of the currently broken validation architecture
|
|
4
|
-
type: project
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
New validation tests and updates to existing validation tests are paused. The validation system is currently broken and a redesign is anticipated. Do not create or modify files in validation/tests/ until the user indicates the redesign is underway.
|
|
8
|
-
|
|
9
|
-
**Why:** The validation architecture is broken and being reconsidered.
|
|
10
|
-
**How to apply:** Skip validation file creation/updates when adding or modifying Testaro rules until further notice.
|