testaro 60.8.0 → 60.8.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/VALIDATION_README.md +10 -8
- package/package.json +1 -1
- package/testaro/adbID.js +2 -1
- package/testaro/altScheme.js +1 -1
- package/testaro/captionLoc.js +1 -1
- package/testaro/datalistRef.js +1 -1
- package/testaro/imageLink.js +1 -1
- package/testaro/legendLoc.js +1 -1
- package/testaro/optRoleSel.js +1 -1
- package/testaro/phOnly.js +1 -1
- package/testaro/secHeading.js +1 -1
- package/testaro/textSem.js +1 -1
- package/tests/testaro.js +0 -3
package/VALIDATION_README.md
CHANGED
|
@@ -4,28 +4,30 @@ Quick notes to run the Testaro validation tests locally (Windows PowerShell):
|
|
|
4
4
|
|
|
5
5
|
1. Install project dependencies
|
|
6
6
|
|
|
7
|
-
```powershell
|
|
8
|
-
npm install
|
|
9
|
-
```
|
|
7
|
+
```powershell
|
|
8
|
+
npm install
|
|
9
|
+
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
1. Install Playwright browsers (required)
|
|
12
12
|
|
|
13
|
-
```powershell
|
|
14
|
-
npx playwright install
|
|
15
|
-
```
|
|
13
|
+
```powershell
|
|
14
|
+
npx playwright install
|
|
15
|
+
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
1. Run a validation for a specific rule (example: `altScheme`)
|
|
18
18
|
|
|
19
19
|
```powershell
|
|
20
20
|
npm test altScheme
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Notes:
|
|
24
|
+
|
|
24
25
|
- If a validator job is stored under `validation/tests/jobProperties/pending`, copy it to `validation/tests/jobProperties/` or run the validator via the provided filenames. `altScheme` was copied already.
|
|
25
26
|
- If a test fails its expectations, read the JSON output printed by the validation harness for `standardResult` and `expectations` to identify missing instances.
|
|
26
27
|
- After making changes to rule implementations in `testaro/`, re-run the specific `npm test <ruleID>` until the validator reports success.
|
|
27
28
|
|
|
28
29
|
Preparing a PR:
|
|
30
|
+
|
|
29
31
|
- Create a branch (example `feature/add-training-rules`), commit your changes, push to remote, and open a PR describing which rules are training vs clean-room.
|
|
30
32
|
|
|
31
33
|
## License
|
package/package.json
CHANGED
package/testaro/adbID.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2025 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
+
© 2025 Juan S. Casado. All rights reserved.
|
|
3
4
|
© 2025 Jonathan Robert Pool. All rights reserved.
|
|
4
5
|
|
|
5
6
|
MIT License
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
|
|
26
27
|
/*
|
|
27
28
|
adbID
|
|
28
|
-
This test reports elements referencing aria-describedby targets that are missing
|
|
29
|
+
Clean-room rule:This test reports elements referencing aria-describedby targets that are missing
|
|
29
30
|
or, because of duplicate IDs, ambiguous. An earlier version of this test was
|
|
30
31
|
originally developed under a clean-room procedure to ensure its independence from
|
|
31
32
|
the implementation of a test for a similar rule in the Tenon tool.
|
package/testaro/altScheme.js
CHANGED
package/testaro/captionLoc.js
CHANGED
package/testaro/datalistRef.js
CHANGED
package/testaro/imageLink.js
CHANGED
package/testaro/legendLoc.js
CHANGED
package/testaro/optRoleSel.js
CHANGED
package/testaro/phOnly.js
CHANGED
package/testaro/secHeading.js
CHANGED
package/testaro/textSem.js
CHANGED
package/tests/testaro.js
CHANGED
|
@@ -448,9 +448,6 @@ const allRules = [
|
|
|
448
448
|
defaultOn: false
|
|
449
449
|
}
|
|
450
450
|
];
|
|
451
|
-
const headedBrowser = process.env.HEADED_BROWSER === 'true';
|
|
452
|
-
const debug = process.env.DEBUG === 'true';
|
|
453
|
-
const waits = Number.parseInt(process.env.WAITS) || 0;
|
|
454
451
|
const timeoutMultiplier = Number.parseFloat(process.env.TIMEOUT_MULTIPLIER) || 1;
|
|
455
452
|
|
|
456
453
|
// ERROR HANDLER
|