testaro 33.1.2 → 33.1.3
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 +5 -5
- package/call.js +1 -1
- package/dirWatch.js +1 -1
- package/netWatch.js +1 -1
- package/package.json +1 -1
- package/procs/standardize.js +1 -1
- package/procs/tellServer.js +1 -1
- package/run.js +1 -1
- package/tests/wave.js +7 -1
- package/watch.js +1 -1
package/README.md
CHANGED
|
@@ -890,7 +890,7 @@ The Playwright “Receives Events” actionability check does **not** check whet
|
|
|
890
890
|
|
|
891
891
|
Test targets employ mechanisms to prevent scraping, automated form submission, and other automated actions. These mechanisms may interfere with testing. When a test act is prevented by a target, Testaro reports this prevention.
|
|
892
892
|
|
|
893
|
-
Some targets prohibit the execution of alien scripts unless the client can demonstrate that it is the requester of the page. Failure to provide that evidence results in the script being blocked and an error message being logged, saying “Refused to execute a script because its hash, its nonce, or unsafe-inline does not appear in the script-src directive of the Content Security Policy”. This mechanism affects tools that insert scripts into a target in order to test it. Those tools include `axe`, `
|
|
893
|
+
Some targets prohibit the execution of alien scripts unless the client can demonstrate that it is the requester of the page. Failure to provide that evidence results in the script being blocked and an error message being logged, saying “Refused to execute a script because its hash, its nonce, or unsafe-inline does not appear in the script-src directive of the Content Security Policy”. This mechanism affects tools that insert scripts into a target in order to test it. Those tools include `axe`, `aslint`, `ed11y`, and `htmlcs`. To comply with this requirement, Testaro obtains a _nonce_ from the response that serves the target. Then the file that runs the tool adds that nonce to the script as the value of a `nonce` attribute when it inserts its script into the target.
|
|
894
894
|
|
|
895
895
|
### Tool duplicativity
|
|
896
896
|
|
|
@@ -913,12 +913,12 @@ The files in the `temp` directory are presumed ephemeral and are not tracked by
|
|
|
913
913
|
## Related packages
|
|
914
914
|
|
|
915
915
|
[Testilo](https://www.npmjs.com/package/testilo) is an application that:
|
|
916
|
-
-
|
|
916
|
+
- converts lists of targets and lists of issues into jobs
|
|
917
917
|
- produces scores and adds them to the raw reports of Testaro
|
|
918
918
|
- produces human-oriented HTML digests from scored reports
|
|
919
919
|
- produces human-oriented HTML comparisons of the scores of targets
|
|
920
920
|
|
|
921
|
-
Testilo contains procedures that reorganize report data by
|
|
921
|
+
Testilo contains procedures that reorganize report data by issue rather than tool, and that compensate for duplicative tests when computing scores.
|
|
922
922
|
|
|
923
923
|
Testaro is derived from [Autotest](https://github.com/jrpool/autotest). Autotest was created as a monolithic accessibility testing package, but that forced functionalities to be hosted on a workstation merely because it was impractical to host Playwright elsewhere. Testaro embodies an architectural decision to isolate workstation-dependent functionalities.
|
|
924
924
|
|
|
@@ -934,14 +934,14 @@ The JavaScript code in this project generally conforms to the ESLint configurati
|
|
|
934
934
|
|
|
935
935
|
## Origin
|
|
936
936
|
|
|
937
|
-
Work on the custom tests in this package began in 2017, and work on the multi-package
|
|
937
|
+
Work on the custom tests in this package began in 2017, and work on the multi-package ensemble that Testaro implements began in early 2018. These two aspects were combined into the [Autotest](https://github.com/jrpool/autotest) package in early 2021 and into the more single-purpose packages, Testaro and Testilo, in January 2022.
|
|
938
938
|
|
|
939
939
|
## Etymology
|
|
940
940
|
|
|
941
941
|
“Testaro” means “collection of tests” in Esperanto.
|
|
942
942
|
|
|
943
943
|
/*
|
|
944
|
-
© 2021–
|
|
944
|
+
© 2021–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
945
945
|
|
|
946
946
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
947
947
|
of this software and associated documentation files (the "Software"), to deal
|
package/call.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
© 2022–
|
|
2
|
+
© 2022–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
package/dirWatch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
© 2023 CVS Health and/or one of its affiliates. All rights reserved.
|
|
2
|
+
© 2023–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
package/netWatch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
© 2022–
|
|
2
|
+
© 2022–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
package/package.json
CHANGED
package/procs/standardize.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
© 2023 CVS Health and/or one of its affiliates. All rights reserved.
|
|
2
|
+
© 2023–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
package/procs/tellServer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
© 2023 CVS Health and/or one of its affiliates. All rights reserved.
|
|
2
|
+
© 2023–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
package/run.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
© 2021–
|
|
2
|
+
© 2021–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
package/tests/wave.js
CHANGED
|
@@ -63,15 +63,21 @@ exports.reporter = async (page, options) => {
|
|
|
63
63
|
delete categories.aria;
|
|
64
64
|
// If rules were specified:
|
|
65
65
|
if (rules && rules.length) {
|
|
66
|
-
//
|
|
66
|
+
// For each WAVE rule category:
|
|
67
67
|
['error', 'contrast', 'alert'].forEach(category => {
|
|
68
|
+
// If any violations were reported:
|
|
68
69
|
if (
|
|
69
70
|
categories[category]
|
|
70
71
|
&& categories[category].items
|
|
71
72
|
&& Object.keys(categories[category].items).length
|
|
72
73
|
) {
|
|
74
|
+
// For each rule violated:
|
|
73
75
|
Object.keys(categories[category].items).forEach(ruleID => {
|
|
76
|
+
// If it was not a specified rule:
|
|
74
77
|
if (! rules.includes(ruleID)) {
|
|
78
|
+
// Decrease the category violation count by the count of its violations.
|
|
79
|
+
categories[category].count -= categories[category].items[ruleID].count;
|
|
80
|
+
// Remove its violations from the report.
|
|
75
81
|
delete categories[category].items[ruleID];
|
|
76
82
|
}
|
|
77
83
|
});
|
package/watch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
© 2022–
|
|
2
|
+
© 2022–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|