testaro 60.6.0 → 60.7.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/CONTRIBUTING.md +30 -27
- package/UPGRADES.md +474 -200
- package/package.json +1 -1
- package/run.js +52 -1
- package/testaro/lineHeight-slow.js +70 -0
- package/testaro/lineHeight.js +59 -27
- package/validation/jobs/todo/README.md +1 -1
- package/validation/watch/done/README.md +4 -4
- package/validation/watch/todo/README.md +4 -4
package/CONTRIBUTING.md
CHANGED
|
@@ -1,33 +1,9 @@
|
|
|
1
|
-
/*
|
|
2
|
-
© 2023–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
3
|
-
© 2025 Jonathan Robert Pool. All rights reserved.
|
|
4
|
-
|
|
5
|
-
MIT License
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
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.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
1
|
# Contributing to Testaro
|
|
27
2
|
|
|
28
3
|
## Types of contributions
|
|
29
4
|
|
|
30
5
|
Testaro can benefit from contributions of various types, such as:
|
|
6
|
+
|
|
31
7
|
- Adding other tools to the tools that it integrates.
|
|
32
8
|
- Improving its execution speed.
|
|
33
9
|
- Improving its own rule implementations.
|
|
@@ -36,13 +12,14 @@ Testaro can benefit from contributions of various types, such as:
|
|
|
36
12
|
## Adding tools
|
|
37
13
|
|
|
38
14
|
Tools that may merit consideration include:
|
|
15
|
+
|
|
39
16
|
- Arc (by TPGi). Costs $0.05 per page tested, and requires each user to have an account with the tool maker and to allow the tool maker to charge a charge account for payment.
|
|
40
17
|
|
|
41
18
|
## Improving execution speed
|
|
42
19
|
|
|
43
20
|
To come.
|
|
44
21
|
|
|
45
|
-
## Improving rule implementations
|
|
22
|
+
## Improving rule implementations
|
|
46
23
|
|
|
47
24
|
To come.
|
|
48
25
|
|
|
@@ -61,6 +38,7 @@ The first step in contributing a new rule to Testaro is to satisfy yourself that
|
|
|
61
38
|
The second step is to write a validator for the new rule. A validator is software that defines the correct behavior of the implementation of the rule.
|
|
62
39
|
|
|
63
40
|
Every Testaro rule (which means each of the approximately 50 rules of the Testaro tool) has a correspoding validator. A validator has two parts:
|
|
41
|
+
|
|
64
42
|
- A job file, in the `validation/tests/jobs` directory. It tells Testaro what tests to perform and what the results should be.
|
|
65
43
|
- A target directory, within the `validation/tests/targets` directory. The target directory contains one or more HTML files that will be tested by the job.
|
|
66
44
|
|
|
@@ -110,7 +88,7 @@ You can copy and revise any of the existing JSON files in the `testaro` director
|
|
|
110
88
|
|
|
111
89
|
### Simplifiable rules
|
|
112
90
|
|
|
113
|
-
More complex Testaro rules are implemented in JavaScript. Some rules are _simplifiable_. These can be implemented with JavaScript modules like the one for the `allSlanted` rule. To implement such a rule, you can copy an existing module and replace the
|
|
91
|
+
More complex Testaro rules are implemented in JavaScript. Some rules are _simplifiable_. These can be implemented with JavaScript modules like the one for the `allSlanted` rule. To implement such a rule, you can copy an existing module and replace the values of the 6 properties of the`ruleData` object. The significant decisions here are about the values of the `selector` and `pruner` properties.
|
|
114
92
|
|
|
115
93
|
The `selector` value is a CSS selector that identifies candidate elements for violation reporting. What makes this rule simplifiable, instead of simple, is that these elements may or may not be determined to violate the rule. Each of the elements identified by the selector must be further analyzed by the pruner. The pruner takes a Playwright locator as its argument and returns `true` if it finds that the element located by the locator violates the rule, or `false` if not.
|
|
116
94
|
|
|
@@ -123,3 +101,28 @@ Some utility functions in modules in the `procs` directory are available for sup
|
|
|
123
101
|
## License agreement
|
|
124
102
|
|
|
125
103
|
From 12 February 2024 through 30 September 2025, contributors of code to Testaro executed the [CVS Health OSS Project Contributor License Agreement](https://forms.office.com/pages/responsepage.aspx?id=uGG7-v46dU65NKR_eCuM1xbiih2MIwxBuRvO0D_wqVFUQ1k0OE5SVVJWWkY4MTVJMkY3Sk9GM1FHRC4u) for Testaro before any pull request was approved and merged.
|
|
104
|
+
|
|
105
|
+
/*
|
|
106
|
+
© 2023–2024 CVS Health and/or one of its affiliates. All rights reserved.
|
|
107
|
+
© 2025 Jonathan Robert Pool. All rights reserved.
|
|
108
|
+
|
|
109
|
+
MIT License
|
|
110
|
+
|
|
111
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
112
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
113
|
+
in the Software without restriction, including without limitation the rights
|
|
114
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
115
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
116
|
+
furnished to do so, subject to the following conditions:
|
|
117
|
+
|
|
118
|
+
The above copyright notice and this permission notice shall be included in all
|
|
119
|
+
copies or substantial portions of the Software.
|
|
120
|
+
|
|
121
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
122
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
123
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
124
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
125
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
126
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
127
|
+
SOFTWARE.
|
|
128
|
+
*/
|