testaro 60.12.0 → 60.14.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.
- package/AGENTS.md +6 -2
- package/CONTRIBUTING.md +9 -24
- package/LICENSE +1 -1
- package/README.md +7 -24
- package/UPGRADES.md +15 -28
- package/VALIDATION_README.md +7 -24
- package/aceconfig.js +3 -18
- package/actSpecs.js +4 -19
- package/call.js +3 -18
- package/data/template.js +3 -18
- package/dirWatch.js +3 -18
- package/netWatch.js +4 -19
- package/package.json +1 -1
- package/procs/aslint.js +3 -18
- package/procs/dateOf.js +3 -18
- package/procs/doTestAct.js +5 -20
- package/procs/getLocatorData.js +3 -18
- package/procs/getSource.js +3 -18
- package/procs/identify.js +3 -18
- package/procs/isInlineLink.js +4 -19
- package/procs/job.js +3 -18
- package/procs/sample.js +3 -18
- package/procs/screenShot.js +1 -1
- package/procs/shoot.js +1 -1
- package/procs/standardize.js +4 -19
- package/procs/target.js +4 -19
- package/procs/tellServer.js +3 -18
- package/procs/testaro.js +111 -25
- package/procs/visChange.js +4 -19
- package/pw-aslint-claude.js +1 -1
- package/run.js +5 -20
- package/scripts/dumpAlts.js +4 -19
- package/testaro/adbID.js +5 -22
- package/testaro/allCaps.js +4 -19
- package/testaro/allHidden.js +4 -19
- package/testaro/allSlanted.js +4 -19
- package/testaro/altScheme.js +5 -22
- package/testaro/attVal.js +3 -18
- package/testaro/autocomplete.js +4 -19
- package/testaro/bulk.js +4 -19
- package/testaro/buttonMenu.js +4 -19
- package/testaro/captionLoc.js +5 -22
- package/testaro/datalistRef.js +5 -20
- package/testaro/distortion.js +4 -19
- package/testaro/docType.js +3 -18
- package/testaro/dupAtt.js +3 -18
- package/testaro/elements.js +3 -18
- package/testaro/embAc.js +4 -19
- package/testaro/focAll.js +4 -19
- package/testaro/focAndOp.js +5 -22
- package/testaro/focInd.js +5 -22
- package/testaro/focVis.js +27 -54
- package/testaro/headEl.js +4 -19
- package/testaro/headingAmb.js +3 -18
- package/testaro/hovInd.js +4 -19
- package/testaro/hover.js +70 -77
- package/testaro/imageLink.js +3 -18
- package/testaro/labClash.js +29 -48
- package/testaro/legendLoc.js +3 -18
- package/testaro/lineHeight.js +5 -22
- package/testaro/linkAmb.js +4 -19
- package/testaro/linkTitle.js +4 -19
- package/testaro/linkUl.js +4 -19
- package/testaro/miniText.js +5 -20
- package/testaro/motion.js +1 -1
- package/testaro/motionSolo.js +4 -19
- package/testaro/nonTable.js +4 -19
- package/testaro/optRoleSel.js +3 -18
- package/testaro/phOnly.js +3 -18
- package/testaro/pseudoP.js +3 -18
- package/testaro/radioSet.js +3 -18
- package/testaro/role.js +4 -19
- package/testaro/secHeading.js +3 -18
- package/testaro/shoot0.js +1 -1
- package/testaro/shoot1.js +1 -1
- package/testaro/styleDiff.js +3 -18
- package/testaro/tabNav.js +4 -19
- package/testaro/targetSmall.js +4 -19
- package/testaro/targetTiny.js +4 -19
- package/testaro/textNodes.js +3 -18
- package/testaro/textSem.js +3 -18
- package/testaro/title.js +3 -18
- package/testaro/zIndex.js +3 -18
- package/tests/alfa.js +4 -19
- package/tests/aslint.js +4 -19
- package/tests/axe.js +4 -19
- package/tests/ed11y.js +4 -19
- package/tests/htmlcs.js +3 -18
- package/tests/ibm.js +4 -19
- package/tests/nuVal.js +3 -18
- package/tests/qualWeb.js +3 -18
- package/tests/testaro.js +22 -30
- package/tests/wave.js +3 -18
- package/tests/wax.js +4 -19
- package/validation/done/README.md +8 -23
- package/validation/executors/dirWatch.js +4 -19
- package/validation/executors/netWatch.js +3 -18
- package/validation/executors/run.js +3 -18
- package/validation/executors/test.js +3 -18
- package/validation/executors/tests.js +3 -18
- package/validation/jobs/done/README.md +9 -0
- package/validation/jobs/todo/README.md +3 -16
- package/validation/tests/targets/adbID/index.html +3 -18
- package/validation/tests/targets/allCaps/index.html +3 -18
- package/validation/tests/targets/allHidden/ariaHiddenBody.html +3 -18
- package/validation/tests/targets/allHidden/good.html +3 -18
- package/validation/tests/targets/allHidden/hiddenMain.html +3 -18
- package/validation/tests/targets/allHidden/mixedHidden.html +3 -18
- package/validation/tests/targets/allHidden/noBody.html +4 -19
- package/validation/tests/targets/allHidden/noMain.html +4 -19
- package/validation/tests/targets/allHidden/noneDoc.html +3 -18
- package/validation/tests/targets/allHidden/visHiddenMain.html +3 -18
- package/validation/tests/targets/allSlanted/index.html +3 -18
- package/validation/tests/targets/altScheme/index.html +3 -18
- package/validation/tests/targets/attVal/bad.html +3 -18
- package/validation/tests/targets/attVal/good.html +3 -18
- package/validation/tests/targets/autocomplete/bad.html +3 -18
- package/validation/tests/targets/autocomplete/good.html +3 -18
- package/validation/tests/targets/bulk/bad.html +3 -18
- package/validation/tests/targets/bulk/good.html +3 -18
- package/validation/tests/targets/buttonMenu/bad.html +3 -18
- package/validation/tests/targets/buttonMenu/bad.js +3 -18
- package/validation/tests/targets/buttonMenu/good.html +3 -18
- package/validation/tests/targets/buttonMenu/good.js +3 -18
- package/validation/tests/targets/buttonMenu/style.css +3 -18
- package/validation/tests/targets/captionLoc/index.html +3 -18
- package/validation/tests/targets/datalistRef/index.html +3 -18
- package/validation/tests/targets/distortion/index.html +3 -18
- package/validation/tests/targets/docType/bad.html +3 -18
- package/validation/tests/targets/docType/good.html +3 -18
- package/validation/tests/targets/dupAtt/bad.html +3 -18
- package/validation/tests/targets/dupAtt/good.html +3 -18
- package/validation/tests/targets/elements/index.html +3 -18
- package/validation/tests/targets/embAc/bad.html +3 -18
- package/validation/tests/targets/embAc/good.html +3 -18
- package/validation/tests/targets/focAll/good.html +3 -18
- package/validation/tests/targets/focAll/less.html +3 -18
- package/validation/tests/targets/focAll/more.html +3 -18
- package/validation/tests/targets/focInd/bad.html +4 -19
- package/validation/tests/targets/focInd/good.html +3 -18
- package/validation/tests/targets/focOp/bad.html +3 -18
- package/validation/tests/targets/focOp/good.html +3 -18
- package/validation/tests/targets/focVis/index.html +3 -18
- package/validation/tests/targets/headEl/index.html +3 -18
- package/validation/tests/targets/headingAmb/index.html +3 -18
- package/validation/tests/targets/hovInd/index.html +4 -19
- package/validation/tests/targets/hover/bad.html +3 -18
- package/validation/tests/targets/hover/good.html +3 -18
- package/validation/tests/targets/hr/index.html +3 -18
- package/validation/tests/targets/imageLink/index.html +3 -18
- package/validation/tests/targets/labClash/bad.html +3 -18
- package/validation/tests/targets/labClash/good.html +3 -18
- package/validation/tests/targets/legendLoc/index.html +3 -18
- package/validation/tests/targets/lineHeight/index.html +3 -18
- package/validation/tests/targets/linkAmb/index.html +4 -19
- package/validation/tests/targets/linkExt/index.html +3 -18
- package/validation/tests/targets/linkOldAtt/index.html +3 -18
- package/validation/tests/targets/linkTitle/index.html +3 -18
- package/validation/tests/targets/linkTo/index.html +3 -18
- package/validation/tests/targets/linkUl/bad.html +4 -19
- package/validation/tests/targets/linkUl/good.html +4 -19
- package/validation/tests/targets/linkUl/na.html +4 -19
- package/validation/tests/targets/miniText/index.html +3 -18
- package/validation/tests/targets/motion/bad.css +3 -18
- package/validation/tests/targets/motion/bad.html +3 -18
- package/validation/tests/targets/motion/good.html +3 -18
- package/validation/tests/targets/nonTable/index.html +3 -18
- package/validation/tests/targets/opFoc/bad.html +3 -18
- package/validation/tests/targets/opFoc/good.html +3 -18
- package/validation/tests/targets/optRoleSel/index.html +3 -18
- package/validation/tests/targets/phOnly/index.html +3 -18
- package/validation/tests/targets/pseudoP/index.html +3 -18
- package/validation/tests/targets/radioSet/bad.html +3 -18
- package/validation/tests/targets/radioSet/good.html +3 -18
- package/validation/tests/targets/role/bad.html +4 -19
- package/validation/tests/targets/role/good.html +3 -18
- package/validation/tests/targets/secHeading/index.html +3 -18
- package/validation/tests/targets/styleDiff/bad.html +3 -18
- package/validation/tests/targets/styleDiff/good.html +3 -18
- package/validation/tests/targets/tabNav/bad.html +3 -18
- package/validation/tests/targets/tabNav/bad.js +3 -18
- package/validation/tests/targets/tabNav/good.html +3 -18
- package/validation/tests/targets/tabNav/good.js +3 -18
- package/validation/tests/targets/tabNav/style.css +3 -18
- package/validation/tests/targets/targetSize/index.html +4 -19
- package/validation/tests/targets/textNodes/index.html +3 -18
- package/validation/tests/targets/textSem/index.html +3 -18
- package/validation/tests/targets/title/bad.html +3 -18
- package/validation/tests/targets/title/good.html +3 -18
- package/validation/tests/targets/titledEl/index.html +3 -18
- package/validation/tests/targets/zIndex/bad.html +3 -18
- package/validation/tests/targets/zIndex/good.html +3 -18
- package/validation/validateTest.js +4 -19
- package/validation/watch/done/README.md +5 -20
- package/validation/watch/todo/README.md +5 -20
package/procs/sample.js
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2023 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
|
|
4
|
-
MIT License
|
|
4
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
5
|
+
https://opensource.org/license/mit/ for details.
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
SOFTWARE.
|
|
7
|
+
SPDX-License-Identifier: MIT
|
|
23
8
|
*/
|
|
24
9
|
|
|
25
10
|
/*
|
package/procs/screenShot.js
CHANGED
package/procs/shoot.js
CHANGED
package/procs/standardize.js
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2023–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
-
© 2025 Jonathan Robert Pool.
|
|
3
|
+
© 2025 Jonathan Robert Pool.
|
|
4
4
|
|
|
5
|
-
MIT License
|
|
5
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
6
|
+
https://opensource.org/license/mit/ for details.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
SOFTWARE.
|
|
8
|
+
SPDX-License-Identifier: MIT
|
|
24
9
|
*/
|
|
25
10
|
|
|
26
11
|
/*
|
package/procs/target.js
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2023–2025 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
-
© 2025 Jonathan Robert Pool.
|
|
3
|
+
© 2025 Jonathan Robert Pool.
|
|
4
4
|
|
|
5
|
-
MIT License
|
|
5
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
6
|
+
https://opensource.org/license/mit/ for details.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
SOFTWARE.
|
|
8
|
+
SPDX-License-Identifier: MIT
|
|
24
9
|
*/
|
|
25
10
|
|
|
26
11
|
/*
|
package/procs/tellServer.js
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2023–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
|
|
4
|
-
MIT License
|
|
4
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
5
|
+
https://opensource.org/license/mit/ for details.
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
SOFTWARE.
|
|
7
|
+
SPDX-License-Identifier: MIT
|
|
23
8
|
*/
|
|
24
9
|
|
|
25
10
|
/*
|
package/procs/testaro.js
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2023–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
-
© 2025 Jonathan Robert Pool.
|
|
3
|
+
© 2025 Jonathan Robert Pool.
|
|
4
4
|
|
|
5
|
-
MIT License
|
|
5
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
6
|
+
https://opensource.org/license/mit/ for details.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
SOFTWARE.
|
|
8
|
+
SPDX-License-Identifier: MIT
|
|
24
9
|
*/
|
|
25
10
|
|
|
26
11
|
/*
|
|
@@ -90,7 +75,7 @@ const getRuleResult = exports.getRuleResult = async (
|
|
|
90
75
|
// If itemization is required:
|
|
91
76
|
if (withItems) {
|
|
92
77
|
// Get the bounding box of the element.
|
|
93
|
-
const {tagName,id, location, excerpt} = elData;
|
|
78
|
+
const {tagName, id, location, excerpt} = elData;
|
|
94
79
|
const box = location.type === 'box' ? location.spec : await boxOf(loc);
|
|
95
80
|
// Add a standard instance to the result.
|
|
96
81
|
standardInstances.push({
|
|
@@ -169,7 +154,7 @@ exports.doTest = async (
|
|
|
169
154
|
getBadWhatString
|
|
170
155
|
) => {
|
|
171
156
|
// Return totals and standard instances for the rule.
|
|
172
|
-
return await page.evaluate(args => {
|
|
157
|
+
return await page.evaluate(async args => {
|
|
173
158
|
const [
|
|
174
159
|
withItems,
|
|
175
160
|
ruleID,
|
|
@@ -186,8 +171,8 @@ exports.doTest = async (
|
|
|
186
171
|
// Get a violation function.
|
|
187
172
|
const getBadWhat = eval(`(${getBadWhatString})`);
|
|
188
173
|
// For each candidate:
|
|
189
|
-
|
|
190
|
-
const violationWhat = getBadWhat(
|
|
174
|
+
for (const candidate of candidates) {
|
|
175
|
+
const violationWhat = await getBadWhat(candidate);
|
|
191
176
|
// If it violates the rule:
|
|
192
177
|
if (violationWhat) {
|
|
193
178
|
// Increment the violation count.
|
|
@@ -205,11 +190,11 @@ exports.doTest = async (
|
|
|
205
190
|
}
|
|
206
191
|
// Add an instance to the instances.
|
|
207
192
|
instances.push(
|
|
208
|
-
window.getInstance(
|
|
193
|
+
window.getInstance(candidate, ruleID, ruleWhat, 1, ruleSeverity)
|
|
209
194
|
);
|
|
210
195
|
}
|
|
211
196
|
}
|
|
212
|
-
}
|
|
197
|
+
}
|
|
213
198
|
// If there are any violations and itemization is not required:
|
|
214
199
|
if (violationCount && ! withItems) {
|
|
215
200
|
// Add a summary instance to the instances.
|
|
@@ -233,3 +218,104 @@ exports.doTest = async (
|
|
|
233
218
|
]
|
|
234
219
|
);
|
|
235
220
|
};
|
|
221
|
+
// Returns a result from a basic test.
|
|
222
|
+
exports.getBasicResult = async (
|
|
223
|
+
page, withItems, ruleID, ordinalSeverity, summaryTagName, whats, data, violations
|
|
224
|
+
) => {
|
|
225
|
+
// If the test was prevented:
|
|
226
|
+
if (data.prevented) {
|
|
227
|
+
// Return this.
|
|
228
|
+
return {
|
|
229
|
+
data,
|
|
230
|
+
totals: [0, 0, 0, 0],
|
|
231
|
+
standardInstances: []
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
// Otherwise, i.e. if the test was not prevented:
|
|
235
|
+
const totals = [0, 0, 0, 0];
|
|
236
|
+
totals[ordinalSeverity] = violations.length;
|
|
237
|
+
const standardInstances = [];
|
|
238
|
+
// If itemization is required:
|
|
239
|
+
if (withItems) {
|
|
240
|
+
// For each violation:
|
|
241
|
+
for (const violation of violations) {
|
|
242
|
+
const {loc, what} = violation;
|
|
243
|
+
const elData = await getLocatorData(loc);
|
|
244
|
+
// Get the bounding box of the element.
|
|
245
|
+
const {tagName, id, location, excerpt} = elData;
|
|
246
|
+
const box = location.type === 'box' ? location.spec : await boxOf(loc);
|
|
247
|
+
// Add a standard instance to the instances.
|
|
248
|
+
standardInstances.push({
|
|
249
|
+
ruleID,
|
|
250
|
+
what,
|
|
251
|
+
ordinalSeverity,
|
|
252
|
+
tagName,
|
|
253
|
+
id,
|
|
254
|
+
location,
|
|
255
|
+
excerpt,
|
|
256
|
+
boxID: boxToString(box),
|
|
257
|
+
pathID: tagName === 'HTML' ? '/html' : await xPath(loc)
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
// Otherwise, i.e. if itemization is not required:
|
|
262
|
+
else {
|
|
263
|
+
// Add a summary instance to the instances.
|
|
264
|
+
standardInstances.push({
|
|
265
|
+
ruleID,
|
|
266
|
+
what: whats,
|
|
267
|
+
ordinalSeverity,
|
|
268
|
+
summaryTagName,
|
|
269
|
+
id: '',
|
|
270
|
+
location: {},
|
|
271
|
+
excerpt: '',
|
|
272
|
+
boxID: '',
|
|
273
|
+
pathID: ''
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
// Return the result.
|
|
277
|
+
return {
|
|
278
|
+
data,
|
|
279
|
+
totals,
|
|
280
|
+
standardInstances
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
// Returns an awaited change in a visible element count.
|
|
284
|
+
exports.getVisibleCountChange = async (
|
|
285
|
+
rootLoc, elementCount0, timeLimit = 400, settleInterval = 75
|
|
286
|
+
) => {
|
|
287
|
+
const startTime = Date.now();
|
|
288
|
+
let timeout;
|
|
289
|
+
let settleChecker;
|
|
290
|
+
let elementCount1 = elementCount0;
|
|
291
|
+
// Set a time limit on the change.
|
|
292
|
+
const timeoutPromise = new Promise(resolve => {
|
|
293
|
+
timeout = setTimeout(() => {
|
|
294
|
+
clearInterval(settleChecker);
|
|
295
|
+
resolve();
|
|
296
|
+
}, timeLimit);
|
|
297
|
+
});
|
|
298
|
+
// Until the time limit expires, periodically:
|
|
299
|
+
const settlePromise = new Promise(resolve => {
|
|
300
|
+
settleChecker = setInterval(async () => {
|
|
301
|
+
const visiblesLoc = await rootLoc.locator('*:visible');
|
|
302
|
+
// Get the count.
|
|
303
|
+
elementCount1 = await visiblesLoc.count();
|
|
304
|
+
// If the count has changed:
|
|
305
|
+
if (elementCount1 !== elementCount0) {
|
|
306
|
+
// Stop.
|
|
307
|
+
clearTimeout(timeout);
|
|
308
|
+
clearInterval(settleChecker);
|
|
309
|
+
resolve();
|
|
310
|
+
}
|
|
311
|
+
}, settleInterval);
|
|
312
|
+
});
|
|
313
|
+
// When a change occurs or the time limit expires:
|
|
314
|
+
await Promise.race([timeoutPromise, settlePromise]);
|
|
315
|
+
const elapsedTime = Math.round(Date.now() - startTime);
|
|
316
|
+
// Return the change.
|
|
317
|
+
return {
|
|
318
|
+
change: elementCount1 - elementCount0,
|
|
319
|
+
elapsedTime
|
|
320
|
+
};
|
|
321
|
+
};
|
package/procs/visChange.js
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2023–2025 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
-
© 2025 Jonathan Robert Pool.
|
|
3
|
+
© 2025 Jonathan Robert Pool.
|
|
4
4
|
|
|
5
|
-
MIT License
|
|
5
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
6
|
+
https://opensource.org/license/mit/ for details.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
SOFTWARE.
|
|
8
|
+
SPDX-License-Identifier: MIT
|
|
24
9
|
*/
|
|
25
10
|
|
|
26
11
|
/*
|
package/pw-aslint-claude.js
CHANGED
package/run.js
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2021–2025 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
-
© 2025 Jonathan Robert Pool.
|
|
3
|
+
© 2025 Jonathan Robert Pool.
|
|
4
4
|
|
|
5
|
-
MIT License
|
|
5
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
6
|
+
https://opensource.org/license/mit/ for details.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
SOFTWARE.
|
|
8
|
+
SPDX-License-Identifier: MIT
|
|
24
9
|
*/
|
|
25
10
|
|
|
26
11
|
/*
|
|
@@ -98,7 +83,7 @@ const timeLimits = {
|
|
|
98
83
|
alfa: 20,
|
|
99
84
|
ed11y: 30,
|
|
100
85
|
ibm: 30,
|
|
101
|
-
testaro:
|
|
86
|
+
testaro: 200 + Math.round(6 * waits / 1000)
|
|
102
87
|
};
|
|
103
88
|
// Timeout multiplier.
|
|
104
89
|
const timeoutMultiplier = Number.parseFloat(process.env.TIMEOUT_MULTIPLIER) || 1;
|
package/scripts/dumpAlts.js
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2025 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
-
© 2025 Jonathan Robert Pool.
|
|
3
|
+
© 2025 Jonathan Robert Pool.
|
|
4
4
|
|
|
5
|
-
MIT License
|
|
5
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
6
|
+
https://opensource.org/license/mit/ for details.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
SOFTWARE.
|
|
8
|
+
SPDX-License-Identifier: MIT
|
|
24
9
|
*/
|
|
25
10
|
|
|
26
11
|
const { chromium } = require('playwright');
|
package/testaro/adbID.js
CHANGED
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2025 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
© 2025 Juan S. Casado. All rights reserved.
|
|
4
|
-
© 2025 Jonathan Robert Pool.
|
|
4
|
+
© 2025 Jonathan Robert Pool.
|
|
5
5
|
|
|
6
|
-
MIT License
|
|
6
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
7
|
+
https://opensource.org/license/mit/ for details.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in all
|
|
16
|
-
copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
-
SOFTWARE.
|
|
9
|
+
SPDX-License-Identifier: MIT
|
|
25
10
|
*/
|
|
26
11
|
|
|
27
12
|
/*
|
|
@@ -40,7 +25,6 @@ const {doTest} = require('../procs/testaro');
|
|
|
40
25
|
|
|
41
26
|
// Runs the test and returns the result.
|
|
42
27
|
exports.reporter = async (page, withItems) => {
|
|
43
|
-
// Define a violation function for execution in the browser.
|
|
44
28
|
const getBadWhat = element => {
|
|
45
29
|
// Get the IDs in the aria-describedby attribute of the element.
|
|
46
30
|
const IDs = element.getAttribute('aria-describedby').trim().split(/\s+/).filter(Boolean);
|
|
@@ -74,8 +58,7 @@ exports.reporter = async (page, withItems) => {
|
|
|
74
58
|
}
|
|
75
59
|
};
|
|
76
60
|
const whats = 'Elements have aria-describedby attributes with missing or invalid id values';
|
|
77
|
-
|
|
78
|
-
return doTest(
|
|
61
|
+
return await doTest(
|
|
79
62
|
page, withItems, 'adbID', '[aria-describedby]', whats, 3, null, getBadWhat.toString()
|
|
80
63
|
);
|
|
81
64
|
};
|
package/testaro/allCaps.js
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2023 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
-
© 2025 Jonathan Robert Pool.
|
|
3
|
+
© 2025 Jonathan Robert Pool.
|
|
4
4
|
|
|
5
|
-
MIT License
|
|
5
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
6
|
+
https://opensource.org/license/mit/ for details.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
SOFTWARE.
|
|
8
|
+
SPDX-License-Identifier: MIT
|
|
24
9
|
*/
|
|
25
10
|
|
|
26
11
|
/*
|
package/testaro/allHidden.js
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2023 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
-
© 2025 Jonathan Robert Pool.
|
|
3
|
+
© 2025 Jonathan Robert Pool.
|
|
4
4
|
|
|
5
|
-
MIT License
|
|
5
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
6
|
+
https://opensource.org/license/mit/ for details.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
SOFTWARE.
|
|
8
|
+
SPDX-License-Identifier: MIT
|
|
24
9
|
*/
|
|
25
10
|
|
|
26
11
|
/*
|
package/testaro/allSlanted.js
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2023 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
-
© 2025 Jonathan Robert Pool.
|
|
3
|
+
© 2025 Jonathan Robert Pool.
|
|
4
4
|
|
|
5
|
-
MIT License
|
|
5
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
6
|
+
https://opensource.org/license/mit/ for details.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
SOFTWARE.
|
|
8
|
+
SPDX-License-Identifier: MIT
|
|
24
9
|
*/
|
|
25
10
|
|
|
26
11
|
/*
|
package/testaro/altScheme.js
CHANGED
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2025 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
© 2025 Juan S. Casado. All rights reserved.
|
|
4
|
-
© 2025 Jonathan Robert Pool.
|
|
4
|
+
© 2025 Jonathan Robert Pool.
|
|
5
5
|
|
|
6
|
-
MIT License
|
|
6
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
7
|
+
https://opensource.org/license/mit/ for details.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in all
|
|
16
|
-
copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
-
SOFTWARE.
|
|
9
|
+
SPDX-License-Identifier: MIT
|
|
25
10
|
*/
|
|
26
11
|
|
|
27
12
|
/*
|
|
@@ -37,7 +22,6 @@ const {doTest} = require('../procs/testaro');
|
|
|
37
22
|
|
|
38
23
|
// Runs the test and returns the result.
|
|
39
24
|
exports.reporter = async (page, withItems) => {
|
|
40
|
-
// Define a violation function for execution in the browser.
|
|
41
25
|
const getBadWhat = element => {
|
|
42
26
|
// Get the value of the alt attribute of the element.
|
|
43
27
|
const alt = (element.getAttribute('alt') || '').trim();
|
|
@@ -56,8 +40,7 @@ exports.reporter = async (page, withItems) => {
|
|
|
56
40
|
}
|
|
57
41
|
};
|
|
58
42
|
const whats = 'img elements have alt attributes with URL or filename values';
|
|
59
|
-
|
|
60
|
-
return doTest(
|
|
43
|
+
return await doTest(
|
|
61
44
|
page, withItems, 'altScheme', 'img[alt]', whats, 1, 'IMG', getBadWhat.toString()
|
|
62
45
|
);
|
|
63
46
|
};
|
package/testaro/attVal.js
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
2
|
© 2023 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
|
|
4
|
-
MIT License
|
|
4
|
+
Licensed under the MIT License. See LICENSE file at the project root or
|
|
5
|
+
https://opensource.org/license/mit/ for details.
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
SOFTWARE.
|
|
7
|
+
SPDX-License-Identifier: MIT
|
|
23
8
|
*/
|
|
24
9
|
|
|
25
10
|
/*
|