@uuv/a11y 1.0.0-beta.3 → 1.0.0-beta.31

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +248 -0
  2. package/CONTRIBUTING.md +46 -0
  3. package/LICENSE +1 -1
  4. package/README.md +32 -249
  5. package/STRUCTURE.md +10 -0
  6. package/bundle/uuv-a11y.bundle.js +2 -2
  7. package/dist/CHANGELOG.md +248 -0
  8. package/dist/CONTRIBUTING.md +46 -0
  9. package/dist/README.md +32 -249
  10. package/dist/STRUCTURE.md +10 -0
  11. package/dist/lib/engine/engine.js +28 -16
  12. package/dist/lib/model/index.d.ts +1 -1
  13. package/dist/lib/model/index.js +1 -1
  14. package/dist/lib/model/reference.js +1 -1
  15. package/dist/lib/model/result.d.ts +2 -1
  16. package/dist/lib/model/result.js +1 -1
  17. package/dist/lib/model/rule.d.ts +0 -7
  18. package/dist/lib/model/rule.js +3 -5
  19. package/dist/lib/query/00-query.d.ts +6 -1
  20. package/dist/lib/query/00-query.js +10 -0
  21. package/dist/lib/query/accessible-name.query.d.ts +4 -2
  22. package/dist/lib/query/accessible-name.query.js +9 -3
  23. package/dist/lib/query/by-role.query.d.ts +4 -3
  24. package/dist/lib/query/by-role.query.js +22 -6
  25. package/dist/lib/query/by-sibling.query.d.ts +12 -0
  26. package/dist/lib/query/by-sibling.query.js +100 -0
  27. package/dist/lib/query/by-tag.query.d.ts +2 -2
  28. package/dist/lib/query/by-tag.query.js +2 -1
  29. package/dist/lib/query/compliant-attributes/attribut-specification.d.ts +34 -0
  30. package/dist/lib/query/compliant-attributes/attribut-specification.js +96 -0
  31. package/dist/lib/query/compliant-attributes/attribute-checker.d.ts +47 -0
  32. package/dist/lib/query/compliant-attributes/attribute-checker.js +73 -0
  33. package/dist/lib/query/compliant-attributes/compliant-attributes.query.d.ts +9 -0
  34. package/dist/lib/query/compliant-attributes/compliant-attributes.query.js +24 -0
  35. package/dist/lib/query/doctype.query.d.ts +2 -2
  36. package/dist/lib/query/doctype.query.js +2 -1
  37. package/dist/lib/query/form.query.d.ts +2 -2
  38. package/dist/lib/query/index.d.ts +7 -0
  39. package/dist/lib/query/index.js +7 -0
  40. package/dist/lib/query/operators/and-query.d.ts +8 -0
  41. package/dist/lib/query/operators/and-query.js +25 -0
  42. package/dist/lib/query/operators/operator-query.d.ts +8 -0
  43. package/dist/lib/query/operators/operator-query.js +14 -0
  44. package/dist/lib/query/operators/or-query.d.ts +8 -0
  45. package/dist/lib/query/operators/or-query.js +24 -0
  46. package/dist/lib/reference/rgaa/coverage/coverage-statement.json +56 -17
  47. package/dist/lib/reference/rgaa/rules/1-image.d.ts +0 -1
  48. package/dist/lib/reference/rgaa/rules/1-image.js +51 -77
  49. package/dist/lib/reference/rgaa/rules/11-form.d.ts +0 -1
  50. package/dist/lib/reference/rgaa/rules/11-form.js +0 -1
  51. package/dist/lib/reference/rgaa/rules/2-frame.d.ts +0 -1
  52. package/dist/lib/reference/rgaa/rules/2-frame.js +8 -7
  53. package/dist/lib/reference/rgaa/rules/3-color.d.ts +0 -1
  54. package/dist/lib/reference/rgaa/rules/3-color.js +0 -3
  55. package/dist/lib/reference/rgaa/rules/5-table.d.ts +12 -1
  56. package/dist/lib/reference/rgaa/rules/5-table.js +292 -1
  57. package/dist/lib/reference/rgaa/rules/6-link.d.ts +12 -1
  58. package/dist/lib/reference/rgaa/rules/6-link.js +147 -1
  59. package/dist/lib/reference/rgaa/rules/8-required-element.d.ts +0 -1
  60. package/dist/lib/reference/rgaa/rules/8-required-element.js +57 -9
  61. package/dist/lib/reference/rgaa/selector-helper.d.ts +40 -1
  62. package/dist/lib/reference/rgaa/selector-helper.js +82 -10
  63. package/dist/package.json +15 -6
  64. package/package.json +15 -6
package/CHANGELOG.md CHANGED
@@ -1,3 +1,251 @@
1
+ # [1.0.0-beta.31](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.30...a11y-v1.0.0-beta.31) (2024-06-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **runner-cypress:** update testing-library monorepo ([bcedb57](https://github.com/Orange-OpenSource/uuv/commit/bcedb5749fd5f062cfb283bedabfe8ad87668c67))
7
+
8
+ # [1.0.0-beta.30](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.29...a11y-v1.0.0-beta.30) (2024-06-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **runner-cypress:** update dependency @badeball/cypress-cucumber-preprocessor to v20.0.7 ([8295ae2](https://github.com/Orange-OpenSource/uuv/commit/8295ae2a4bc40e9f4a8fe02ae440253a7e55c2ea))
14
+ * **runner-cypress:** update dependency @cypress/webpack-preprocessor to v6.0.2 ([1b097a0](https://github.com/Orange-OpenSource/uuv/commit/1b097a094faaa1d70b2df44b56e0073334c3135c))
15
+
16
+ # [1.0.0-beta.29](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.28...a11y-v1.0.0-beta.29) (2024-06-03)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * **runner-cypress:** use badeball depency to generate cucumber json report, [#643](https://github.com/Orange-OpenSource/uuv/issues/643) ([caf36a3](https://github.com/Orange-OpenSource/uuv/commit/caf36a3269ab23a0c9163b45baf49b3a07bba5a6))
22
+
23
+ # [1.0.0-beta.28](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.27...a11y-v1.0.0-beta.28) (2024-05-31)
24
+
25
+
26
+ ### Features
27
+
28
+ * **assistant:** redesign assistant and implement keyboard navigation, [#592](https://github.com/Orange-OpenSource/uuv/issues/592), closes [#623](https://github.com/Orange-OpenSource/uuv/issues/623) ([761bfae](https://github.com/Orange-OpenSource/uuv/commit/761bfae4cb6bf5b1bd1c018e93068ded70463821))
29
+
30
+ # [1.0.0-beta.27](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.26...a11y-v1.0.0-beta.27) (2024-05-24)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * **runner-playwright:** update playwright monorepo to v1.44.1 ([f2a5cb2](https://github.com/Orange-OpenSource/uuv/commit/f2a5cb26c12af3030b09e2b2bd7de02d6b6504b4))
36
+
37
+
38
+ ### Features
39
+
40
+ * **deps:** update dependency clsx to v2 ([d455fb5](https://github.com/Orange-OpenSource/uuv/commit/d455fb504839be771357589434afeed8f64ce1d9))
41
+ * **runner-cypress:** update dependency cypress to v13 ([d21c332](https://github.com/Orange-OpenSource/uuv/commit/d21c332b0de83b4adc77db72fc7e1865f7b6c997))
42
+
43
+ # [1.0.0-beta.26](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.25...a11y-v1.0.0-beta.26) (2024-05-14)
44
+
45
+
46
+ ### Features
47
+
48
+ * **runner-cypress:** update dependency @badeball/cypress-cucumber-preprocessor to v20 ([e3e8e7c](https://github.com/Orange-OpenSource/uuv/commit/e3e8e7c6bea1a776d3e9dd1c225206b785bc390f))
49
+ * **runner-cypress:** update steps definitions for @badeball/cypress-cucumber-preprocessor v20 ([9ec1e82](https://github.com/Orange-OpenSource/uuv/commit/9ec1e826868632fff6443adadaf398ad7b6e2ec5))
50
+ * **runner-playwright:** update playwright monorepo to v1.44.0 ([bbd0518](https://github.com/Orange-OpenSource/uuv/commit/bbd051862e6020b8aa51bc850b5ac65a4361a4e4))
51
+
52
+ # [1.0.0-beta.25](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.24...a11y-v1.0.0-beta.25) (2024-05-10)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * **runner-playwright:** update dependency axe-core to v4.9.1 ([770cd9f](https://github.com/Orange-OpenSource/uuv/commit/770cd9f8e4d87d64c2875dd9e629b3e6c6ad1931))
58
+
59
+
60
+ ### Features
61
+
62
+ * **runner-cypress:** update dependency junit-report-merger to v7 ([7a9e310](https://github.com/Orange-OpenSource/uuv/commit/7a9e310dc192081c5feec543f2dca94468b34230))
63
+
64
+ # [1.0.0-beta.24](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.23...a11y-v1.0.0-beta.24) (2024-05-02)
65
+
66
+
67
+ ### Features
68
+
69
+ * update package-lock for update dependency typescript to v5 ([f058481](https://github.com/Orange-OpenSource/uuv/commit/f058481e2ae75ba91e708a5c4dd8ce16c0f1a04f))
70
+
71
+ # [1.0.0-beta.23](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.22...a11y-v1.0.0-beta.23) (2024-04-22)
72
+
73
+
74
+ ### Features
75
+
76
+ * (refactor) introduce uuv-cli engine from runner-commons, [#576](https://github.com/Orange-OpenSource/uuv/issues/576) ([6de2feb](https://github.com/Orange-OpenSource/uuv/commit/6de2feb2b2d74eddf1244694dfb7d697af28baf8))
77
+ * add unit tests for uuv-cli implementations, [#576](https://github.com/Orange-OpenSource/uuv/issues/576) ([7e67f13](https://github.com/Orange-OpenSource/uuv/commit/7e67f13b9929577162bce84c5e8b5c08a4396a09))
78
+
79
+ # [1.0.0-beta.22](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.21...a11y-v1.0.0-beta.22) (2024-04-14)
80
+
81
+
82
+ ### Bug Fixes
83
+
84
+ * **runner-cypress:** update dependency is-admin to v4 ([768819f](https://github.com/Orange-OpenSource/uuv/commit/768819f114dcba0a8a92412cfd877544e187a289))
85
+ * **runner-playwright:** update dependency axe-core to v4.9.0 ([59a4a6f](https://github.com/Orange-OpenSource/uuv/commit/59a4a6f3d07cddad33a9596253ab8b0fbc85c7c3))
86
+ * **runner-playwright:** update playwright monorepo to v1.43.1 ([bf431d5](https://github.com/Orange-OpenSource/uuv/commit/bf431d5d3ec6cfc26845a44fb38251960546d27e))
87
+
88
+ # [1.0.0-beta.21](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.20...a11y-v1.0.0-beta.21) (2024-04-04)
89
+
90
+
91
+ ### Bug Fixes
92
+
93
+ * update nx to version 18.2.1, fixes [#562](https://github.com/Orange-OpenSource/uuv/issues/562) ([669a363](https://github.com/Orange-OpenSource/uuv/commit/669a36307b02d8aa5b41609a08e794eae335b4ed))
94
+
95
+ # [1.0.0-beta.20](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.19...a11y-v1.0.0-beta.20) (2024-03-28)
96
+
97
+
98
+ ### Features
99
+
100
+ * **deps:** update node.js to v20 ([f771f22](https://github.com/Orange-OpenSource/uuv/commit/f771f22197d7efc32bba6f8a345b5f6b2f3dd114))
101
+
102
+ # [1.0.0-beta.19](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.18...a11y-v1.0.0-beta.19) (2024-03-15)
103
+
104
+
105
+ ### Bug Fixes
106
+
107
+ * **runner-cypress:** update dependency @cypress/webpack-preprocessor to v6 ([2e9a52b](https://github.com/Orange-OpenSource/uuv/commit/2e9a52b2cc1bfb05e96c212cdec0fd644f41d02b))
108
+
109
+ # [1.0.0-beta.18](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.17...a11y-v1.0.0-beta.18) (2024-03-10)
110
+
111
+
112
+ ### Bug Fixes
113
+
114
+ * **runner-cypress:** update dependency @testing-library/cypress to v10 ([8ef11bf](https://github.com/Orange-OpenSource/uuv/commit/8ef11bfde65efb9ace5942113a03c06c6f8c3b6e))
115
+ * **runner-playwright:** update dependency axe-playwright to v2 ([7e3f1f4](https://github.com/Orange-OpenSource/uuv/commit/7e3f1f4793f89c9d826c341bb73f59d698c3dfa0))
116
+
117
+ # [1.0.0-beta.17](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.16...a11y-v1.0.0-beta.17) (2024-03-07)
118
+
119
+
120
+ ### Bug Fixes
121
+
122
+ * fix husky migration to v9, [#530](https://github.com/Orange-OpenSource/uuv/issues/530) ([dbce11e](https://github.com/Orange-OpenSource/uuv/commit/dbce11e2c8edb8e759538eb9731fbe0ecfb06552))
123
+
124
+
125
+ ### Features
126
+
127
+ * **flutter-finder-usercentric:** initialize flutter usercentric finder, [#423](https://github.com/Orange-OpenSource/uuv/issues/423) ([cedcc3a](https://github.com/Orange-OpenSource/uuv/commit/cedcc3a8803b07a21a9fa3ca18c86d7359743ebc))
128
+ * **runner-flutter:** initialize uuv_flutter e2e cucumber library, [#423](https://github.com/Orange-OpenSource/uuv/issues/423) ([bace2f6](https://github.com/Orange-OpenSource/uuv/commit/bace2f6a6e12b48d99fb69b84e7ce930b0292d4a))
129
+
130
+ # [1.0.0-beta.16](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.15...a11y-v1.0.0-beta.16) (2024-03-04)
131
+
132
+
133
+ ### Bug Fixes
134
+
135
+ * **assistant:** update dependency @ant-design/icons to v5.3.1 ([a428304](https://github.com/Orange-OpenSource/uuv/commit/a428304f37759003424e79d93dc1d5582ef34626))
136
+ * **assistant:** update dependency antd to v5.15.0 ([cb516bc](https://github.com/Orange-OpenSource/uuv/commit/cb516bcd7bb6993c6d7de8ec3f24c7d0ce4dd8b7))
137
+ * fix semantic release ([aef0c23](https://github.com/Orange-OpenSource/uuv/commit/aef0c234009fa8eb6e6a1b63c158af7c407f318a))
138
+ * **runner-playwright:** update playwright monorepo to v1.42.1 ([d0e78f6](https://github.com/Orange-OpenSource/uuv/commit/d0e78f6c73be178e7c00bf4e88d57aef3b537a70))
139
+
140
+ ## [1.0.0-beta.15](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.14...a11y-v1.0.0-beta.15) (2024-02-26)
141
+
142
+
143
+ ### Features
144
+
145
+ * **a11y:** add rgaa criteria 8.*, [#476](https://github.com/Orange-OpenSource/uuv/issues/476) ([426184b](https://github.com/Orange-OpenSource/uuv/commit/426184b56bec5648f85dd86d54a733e445e7fdcd))
146
+
147
+
148
+ ### Bug Fixes
149
+
150
+ * **runner-playwright:** update playwright monorepo to v1.41.2 ([8791934](https://github.com/Orange-OpenSource/uuv/commit/87919348646fb4e5fefed2dc8a16a86e61e7dfc2))
151
+
152
+ ## [1.0.0-beta.14](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.13...a11y-v1.0.0-beta.14) (2024-02-25)
153
+
154
+
155
+ ### Features
156
+
157
+ * add junit xml report option, [#491](https://github.com/Orange-OpenSource/uuv/issues/491) ([b64b0b2](https://github.com/Orange-OpenSource/uuv/commit/b64b0b2a60200269f558bcf7e0c75d8a74ffc226))
158
+
159
+
160
+ ### Bug Fixes
161
+
162
+ * **runner-playwright:** update dependency @cucumber/tag-expressions to v6.1.0 ([47fb579](https://github.com/Orange-OpenSource/uuv/commit/47fb579ee50c26ed67af6390f4e678f8206b7226))
163
+
164
+ ## [1.0.0-beta.13](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.12...a11y-v1.0.0-beta.13) (2024-02-24)
165
+
166
+
167
+ ### Bug Fixes
168
+
169
+ * **assistant:** update dependency antd to v5.14.2 ([1335df6](https://github.com/Orange-OpenSource/uuv/commit/1335df676dd4641a4bda7b7f36d29d8216de0da4))
170
+ * **runner-cypress:** update dependency cypress-real-events to v1.12.0 ([55794fd](https://github.com/Orange-OpenSource/uuv/commit/55794fd04362ad2ece397d108ba400c50b152d59))
171
+
172
+ ## [1.0.0-beta.12](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.11...a11y-v1.0.0-beta.12) (2024-02-23)
173
+
174
+
175
+ ### Features
176
+
177
+ * **a11y:** add rgaa topic 6, [#457](https://github.com/Orange-OpenSource/uuv/issues/457) ([ae59c46](https://github.com/Orange-OpenSource/uuv/commit/ae59c46a8973ba4ad24d2d7479362c3f9a5b0b0b))
178
+
179
+
180
+ ### Bug Fixes
181
+
182
+ * **a11y:** fix topic 5 typo in warning message, [#451](https://github.com/Orange-OpenSource/uuv/issues/451) ([ac503f0](https://github.com/Orange-OpenSource/uuv/commit/ac503f0641574c05222967eff0babc95bbc3f5fc))
183
+ * **assistant:** update dependency @ant-design/icons to v5.3.0 ([b4b2782](https://github.com/Orange-OpenSource/uuv/commit/b4b2782cfa93290a2e3cece937c02c1b00aec938))
184
+
185
+ ## [1.0.0-beta.11](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.10...a11y-v1.0.0-beta.11) (2024-02-21)
186
+
187
+
188
+ ### Bug Fixes
189
+
190
+ * **deps:** update dependency @mdx-js/react to v3.0.1 ([e4ba234](https://github.com/Orange-OpenSource/uuv/commit/e4ba234ec2883f93e6003a7c27843a35f119281b))
191
+
192
+ ## [1.0.0-beta.10](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.9...a11y-v1.0.0-beta.10) (2024-02-15)
193
+
194
+
195
+ ### Bug Fixes
196
+
197
+ * **runner-playwright:** update dependency axe-core to v4.8.4 ([1db34e2](https://github.com/Orange-OpenSource/uuv/commit/1db34e26b498bfc83d47cfd98064faa1aa65f558))
198
+
199
+ ## [1.0.0-beta.9](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.8...a11y-v1.0.0-beta.9) (2024-02-13)
200
+
201
+
202
+ ### Bug Fixes
203
+
204
+ * update dependency multiple-cucumber-html-reporter to v3.6.2 ([95d85c3](https://github.com/Orange-OpenSource/uuv/commit/95d85c3f29ff261232f75c83175d795b63766a89))
205
+
206
+ ## [1.0.0-beta.8](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.7...a11y-v1.0.0-beta.8) (2024-02-13)
207
+
208
+
209
+ ### Features
210
+
211
+ * **a11y:** add rgaa criteria 5.1 to 5.5, [#451](https://github.com/Orange-OpenSource/uuv/issues/451) ([fa3b369](https://github.com/Orange-OpenSource/uuv/commit/fa3b3693e102b54e1d72321aba573e66c864f4e3))
212
+ * **a11y:** add rgaa criteria 5.6 to 5.8, [#451](https://github.com/Orange-OpenSource/uuv/issues/451) ([9cdf4ad](https://github.com/Orange-OpenSource/uuv/commit/9cdf4ad0e5ba16d7b8ddb90e014d96fc741acc17))
213
+
214
+ ## [1.0.0-beta.7](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.6...a11y-v1.0.0-beta.7) (2024-01-24)
215
+
216
+
217
+ ### Features
218
+
219
+ * **a11y:** add rgaa topic 2, [#432](https://github.com/Orange-OpenSource/uuv/issues/432) ([#450](https://github.com/Orange-OpenSource/uuv/issues/450)) ([231d95b](https://github.com/Orange-OpenSource/uuv/commit/231d95b48ecfbeb0c86f44d0de0ca8c68df7b9f1))
220
+
221
+ ## [1.0.0-beta.6](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.5...a11y-v1.0.0-beta.6) (2024-01-23)
222
+
223
+
224
+ ### Features
225
+
226
+ * **a11y:** add RGAA 1.1.6 and 1.1.3, [#429](https://github.com/Orange-OpenSource/uuv/issues/429) ([0e65889](https://github.com/Orange-OpenSource/uuv/commit/0e65889b479651c27e16c29fdb8e5123fe689f03))
227
+
228
+
229
+ ### Bug Fixes
230
+
231
+ * **runner-playwright:** update dependency axe-core to v4.8.3 ([4623485](https://github.com/Orange-OpenSource/uuv/commit/46234851677cf0e5f0479fe30bc786ae2a607f1e))
232
+
233
+ ## [1.0.0-beta.5](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.4...a11y-v1.0.0-beta.5) (2024-01-21)
234
+
235
+
236
+ ### Bug Fixes
237
+
238
+ * **a11y:** update dependency @testing-library/dom to v9.3.4 ([368b6b4](https://github.com/Orange-OpenSource/uuv/commit/368b6b4210f83d2da7695a0bfedd8ac593df171a))
239
+ * **assistant:** fix assistant and enable uuv test for assistant, [#437](https://github.com/Orange-OpenSource/uuv/issues/437) ([da82e1b](https://github.com/Orange-OpenSource/uuv/commit/da82e1b588a391eb24573ac8c3f2db18cfdbf5a5))
240
+ * **deps:** update dependency @easyops-cn/docusaurus-search-local to v0.40.1 ([d5ed3d7](https://github.com/Orange-OpenSource/uuv/commit/d5ed3d75f44e2b83af81fcd7227521dea00371e6))
241
+
242
+ ## [1.0.0-beta.4](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.3...a11y-v1.0.0-beta.4) (2024-01-11)
243
+
244
+
245
+ ### Features
246
+
247
+ * **a11y:** add a contains sentence for a11y rgaa, [#424](https://github.com/Orange-OpenSource/uuv/issues/424) ([297cc33](https://github.com/Orange-OpenSource/uuv/commit/297cc3378798d1eb9c973a2038423ae6f874f70f))
248
+
1
249
  ## [1.0.0-beta.3](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.2...a11y-v1.0.0-beta.3) (2024-01-08)
2
250
 
3
251
 
@@ -0,0 +1,46 @@
1
+ # Contributors guide
2
+
3
+ First, read the general [CONTRIBUTING](../../CONTRIBUTING.md) file
4
+
5
+ ## How Contribue to @uuv/a11y ?
6
+ This [page](./STRUCTURE.md) gives you an overview of the @uuv/a11y module structure.
7
+
8
+ ### Add new RGAA rules
9
+ 1. Identify the file concerned by the new rule you want to add <br>
10
+ For example :
11
+ - a rule on test **1**.1.4 will concern the file `a11y/src/lib/reference/rgaa/rules/1-image.ts`
12
+ - a rule on test **7**.1.1 will concern the file `a11y/src/lib/reference/rgaa/rules/7-script.ts`
13
+ 2. Make sure the rule doesn't already exist in the file
14
+ 3. Add your rule to the file, a rule can be :
15
+ - `Auto` : it can be checked automatically, then you can follow the example below :
16
+ ```typescript
17
+ AutoCheckA11yRule.from({
18
+ reference: "RGAA",
19
+ criterion: "1.1",
20
+ id: "1.1.5",
21
+ elementType: "svg",
22
+ query: new ByTagQuery([
23
+ "svg:not([role=img])"
24
+ ]),
25
+ description: "svg has no image role",
26
+ help: "set image role to svg"
27
+ })
28
+ ```
29
+ - `Manual` : It must be checked manually by a human, then you can follow the example below :
30
+ ```typescript
31
+ ManualCheckA11yRule.from({
32
+ reference: "RGAA",
33
+ criterion: "1.3",
34
+ wcag: "4.1.2 A",
35
+ id: "1.3.1",
36
+ elementType: "image",
37
+ query: new ByTagQuery(informativeContent.image.buildSelectorWithAttributes()),
38
+ attributes: informativeContent.image.ATTRIBUTES,
39
+ description: "if present, attributes alt, title, aria-label, aria-labelledby must be relevant",
40
+ help: "adapt these attributes to be relevant"
41
+ })
42
+ ```
43
+ **Adding a new rule may require you to create a new query, in which case remember to write the corresponding automated tests in the `a11y/test/query/**` directory and export it `index.ts` of same directory.**
44
+
45
+
46
+ 4. Create or enhance the automated topic test file in the directory `a11y/test/checker/**`.
package/LICENSE CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  MIT License
4
4
 
5
- Copyright (c) 2023 Orange
5
+ Copyright (c) 2024 Orange
6
6
 
7
7
  Permission is hereby granted, free of charge, to any person obtaining a copy of
8
8
  this software and associated documentation files (the "Software"), to deal in
package/README.md CHANGED
@@ -125,262 +125,45 @@ For each criterion of the RGAA, the following algorithm is executed :
125
125
  Scenario: Default RGAA
126
126
  When I visit path "https://e2e-test-quest.github.io/simple-webapp/a11y-test.html"
127
127
  Then I should not have any rgaa accessibility issue
128
-
129
- Scenario: RGAA with result
128
+
129
+ Scenario: RGAA with partial result
130
130
  When I visit path "https://e2e-test-quest.github.io/simple-webapp/a11y-test.html"
131
- Then I should have the following result based on the rgaa reference
132
- """json
133
- {
134
- "status": "error",
135
- "criteria": {
136
- "1.1": {
131
+ Then I should have the following partial result based on the rgaa reference
132
+ """json
133
+ {
137
134
  "status": "error",
138
- "tests" : {
139
- "1.1.1": {
140
- "status": "error"
141
- },
142
- "1.1.2": {
143
- "status": "error"
144
- },
145
- "1.1.3": {
146
- "status": "success"
147
- },
148
- "1.1.4": {
149
- "status": "success"
150
- },
151
- "1.1.5": {
152
- "status": "error"
153
- },
154
- "1.1.6": {
155
- "status": "error"
156
- },
157
- "1.1.7": {
158
- "status": "error"
159
- },
160
- "1.1.8": {
161
- "status": "success"
162
- }
163
- }
164
- },
165
- "1.2": {
166
- "status": "success",
167
- "tests": {
168
- "1.2.1": {
169
- "status": "success"
170
- },
171
- "1.2.2": {
172
- "status": "success"
173
- },
174
- "1.2.3": {
175
- "status": "success"
176
- },
177
- "1.2.4": {
178
- "status": "success"
179
- },
180
- "1.2.5": {
181
- "status": "success"
182
- },
183
- "1.2.6": {
184
- "status": "success"
185
- }
186
- }
187
- },
188
- "1.3": {
189
- "status": "manual",
190
- "tests": {
191
- "1.3.1": {
192
- "status": "manual"
193
- },
194
- "1.3.2": {
195
- "status": "manual"
196
- },
197
- "1.3.3": {
198
- "status": "manual"
199
- },
200
- "1.3.4": {
201
- "status": "success"
202
- },
203
- "1.3.5": {
204
- "status": "success"
205
- },
206
- "1.3.6": {
207
- "status": "success"
208
- },
209
- "1.3.7": {
210
- "status": "success"
211
- },
212
- "1.3.9": {
213
- "status": "manual"
214
- }
215
- }
216
- },
217
- "1.4": {
218
- "status": "manual",
219
- "tests": {
220
- "1.4.1": {
221
- "status": "manual"
222
- },
223
- "1.4.2": {
224
- "status": "manual"
225
- },
226
- "1.4.3": {
227
- "status": "manual"
228
- },
229
- "1.4.4": {
230
- "status": "success"
231
- },
232
- "1.4.5": {
233
- "status": "success"
234
- },
235
- "1.4.6": {
236
- "status": "success"
237
- },
238
- "1.4.7": {
239
- "status": "success"
240
- }
241
- }
242
- },
243
- "1.5": {
244
- "status": "manual",
245
- "tests": {
246
- "1.5.1": {
247
- "status": "manual"
248
- },
249
- "1.5.2": {
250
- "status": "manual"
251
- }
252
- }
253
- },
254
- "1.6": {
255
- "status": "manual",
256
- "tests": {
257
- "1.6.1": {
258
- "status": "success"
259
- },
260
- "1.6.2": {
261
- "status": "success"
262
- },
263
- "1.6.3": {
264
- "status": "success"
265
- },
266
- "1.6.4": {
267
- "status": "success"
268
- },
269
- "1.6.5": {
270
- "status": "success"
271
- },
272
- "1.6.6": {
273
- "status": "success"
274
- },
275
- "1.6.7": {
276
- "status": "success"
277
- },
278
- "1.6.8": {
279
- "status": "success"
280
- },
281
- "1.6.9": {
282
- "status": "manual"
283
- },
284
- "1.6.10": {
285
- "status": "manual"
286
- }
287
- }
288
- },
289
- "2.1": {
290
- "status": "error",
291
- "tests": {
292
- "2.1.1": {
293
- "status": "error"
294
- }
295
- }
296
- },
297
- "2.2": {
298
- "status": "manual",
299
- "tests": {
300
- "2.2.1": {
301
- "status": "manual"
302
- }
303
- }
304
- },
305
- "3.1": {
306
- "status": "manual",
307
- "tests": {
308
- "3.1.3": {
309
- "status": "success"
310
- },
311
- "3.1.5": {
312
- "status": "manual"
313
- },
314
- "3.1.6": {
315
- "status": "manual"
316
- }
317
- }
318
- },
319
- "8.1": {
320
- "status": "error",
321
- "tests": {
322
- "8.1.1": {
323
- "status": "error"
324
- }
325
- }
326
- },
327
- "8.3": {
328
- "status": "success",
329
- "tests": {
330
- "8.3.1": {
331
- "status": "success"
332
- }
333
- }
334
- },
335
- "8.4": {
336
- "status": "manual",
337
- "tests": {
338
- "8.4.1": {
339
- "status": "manual"
340
- }
341
- }
342
- },
343
- "8.5": {
344
- "status": "error",
345
- "tests": {
346
- "8.5.1": {
347
- "status": "error"
348
- }
349
- }
350
- },
351
- "8.6": {
352
- "status": "manual",
353
- "tests": {
354
- "8.6.1": {
355
- "status": "manual"
356
- }
357
- }
358
- },
359
- "8.10": {
360
- "status": "error",
361
- "tests": {
362
- "8.10.1": {
363
- "status": "error"
364
- }
365
- }
366
- },
367
- "11.1": {
368
- "status": "success",
369
- "tests": {
370
- "11.1.1": {
371
- "status": "success"
372
- }
373
- }
374
- }
375
- }
376
- }
377
- """
378
- ```
135
+ "criteria": {
136
+ "1.5": {
137
+ "status": "manual"
138
+ },
139
+ "1.6": {
140
+ "status": "manual",
141
+ "tests": {
142
+ "1.6.5": {
143
+ "status": "success"
144
+ }
145
+ }
146
+ },
147
+ "11.1": {
148
+ "status": "success",
149
+ "tests": {
150
+ "11.1.1": {
151
+ "status": "success"
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ """
158
+ ```
159
+ You can also see the [French example](https://github.com/Orange-OpenSource/uuv/blob/main/example/fr-rgaa.feature) or the complete [English example](https://github.com/Orange-OpenSource/uuv/blob/main/example/en-rgaa.feature).
379
160
  3. Then execute your tests :
380
161
  ```shell
381
162
  npx uuv e2e
382
163
  ```
383
164
 
165
+ ## Want to contribute ?
166
+ Your help is welcome, see the [Contributors guide](https://github.com/Orange-OpenSource/uuv/blob/main/packages/a11y/CONTRIBUTING.md).
384
167
 
385
168
  ## License
386
169
 
package/STRUCTURE.md ADDED
@@ -0,0 +1,10 @@
1
+ # Structure of the source
2
+
3
+ The a11y sources are mainly located in the `packages/a11y/src/lib` directory :
4
+
5
+ | Directory | Description |
6
+ |-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
7
+ | `engine` | Represents execution engine |
8
+ | `model` | Contains classes and interfaces to describe rules and results |
9
+ | `query` | A query is a component used to retrieve dom elements according to certain criteria.<br> Exemple : <br> - `by-role.query` : retrieve dom nodes based on their accessible role<br> - `by-tag.query` : retrieve dom nodes based on their html tag name |
10
+ | `reference` | Contains declarations of accessibility standards supported by the `@uuv/a11y` solution, in particular RGAA |