@uuv/a11y 1.0.0-beta.13 → 1.0.0-beta.15

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/dist/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## [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)
2
+
3
+
4
+ ### Features
5
+
6
+ * add junit xml report option, [#491](https://github.com/Orange-OpenSource/uuv/issues/491) ([b64b0b2](https://github.com/Orange-OpenSource/uuv/commit/b64b0b2a60200269f558bcf7e0c75d8a74ffc226))
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **runner-playwright:** update dependency @cucumber/tag-expressions to v6.1.0 ([47fb579](https://github.com/Orange-OpenSource/uuv/commit/47fb579ee50c26ed67af6390f4e678f8206b7226))
12
+
13
+ ## [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)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **assistant:** update dependency antd to v5.14.2 ([1335df6](https://github.com/Orange-OpenSource/uuv/commit/1335df676dd4641a4bda7b7f36d29d8216de0da4))
19
+ * **runner-cypress:** update dependency cypress-real-events to v1.12.0 ([55794fd](https://github.com/Orange-OpenSource/uuv/commit/55794fd04362ad2ece397d108ba400c50b152d59))
20
+
1
21
  ## [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)
2
22
 
3
23
 
@@ -27,7 +27,18 @@
27
27
  "6.1.3",
28
28
  "6.1.4",
29
29
  "6.1.5",
30
- "6.2.1"
30
+ "6.2.1",
31
+ "8.1.1",
32
+ "8.1.2",
33
+ "8.1.3",
34
+ "8.3.1",
35
+ "8.4.1",
36
+ "8.5.1",
37
+ "8.6.1",
38
+ "8.7.1",
39
+ "8.8.1",
40
+ "8.10.1",
41
+ "8.10.2"
31
42
  ],
32
43
  "inProgress": [
33
44
  "1.1.4",
@@ -63,7 +74,9 @@
63
74
  "1.6.4",
64
75
  "1.6.5",
65
76
  "1.6.6",
66
- "1.6.7"
77
+ "1.6.7",
78
+ "8.2.1",
79
+ "8.9.1"
67
80
  ],
68
81
  "wontBeImplemented": [
69
82
  "1.1.6"
@@ -10,7 +10,25 @@ exports.default = [
10
10
  elementType: "doctype",
11
11
  query: new query_1.DoctypeQuery(),
12
12
  description: "current page has no doctype or a doctype different to html",
13
- help: "add <!DOCTYPE html> in the current page"
13
+ help: "add <!DOCTYPE html> before html tag in the current page"
14
+ }),
15
+ model_1.AutoCheckA11yRule.from({
16
+ criterion: "8.1",
17
+ wcag: "4.1.1 A",
18
+ id: "8.1.2",
19
+ elementType: "doctype",
20
+ query: new query_1.DoctypeQuery(),
21
+ description: "current page has no doctype or a doctype different to html",
22
+ help: "add <!DOCTYPE html> before html tag in the current page"
23
+ }),
24
+ model_1.AutoCheckA11yRule.from({
25
+ criterion: "8.1",
26
+ wcag: "4.1.1 A",
27
+ id: "8.1.3",
28
+ elementType: "doctype",
29
+ query: new query_1.DoctypeQuery(),
30
+ description: "current page has no doctype or a doctype different to html",
31
+ help: "add <!DOCTYPE html> before html tag in the current page"
14
32
  }),
15
33
  model_1.AutoCheckA11yRule.from({
16
34
  criterion: "8.3",
@@ -41,7 +59,7 @@ exports.default = [
41
59
  id: "8.5.1",
42
60
  elementType: "title",
43
61
  query: new query_1.ByTagQuery([
44
- "title"
62
+ "html:not(:has(title))"
45
63
  ]),
46
64
  description: "current page has no title tag",
47
65
  help: "add a title tag to the current page"
@@ -58,6 +76,31 @@ exports.default = [
58
76
  description: "if present, title tag must be relevant",
59
77
  help: "adapt this tag content"
60
78
  }),
79
+ model_1.ManualCheckA11yRule.from({
80
+ criterion: "8.7",
81
+ wcag: "3.1.2 AA",
82
+ id: "8.7.1",
83
+ elementType: "lang",
84
+ query: new query_1.ByTagQuery([
85
+ "html"
86
+ ]),
87
+ attributes: [],
88
+ description: "if present, language switch must be specified",
89
+ help: "wrap concerned text with lang or xml:lang attribute"
90
+ }),
91
+ model_1.ManualCheckA11yRule.from({
92
+ criterion: "8.8",
93
+ wcag: "3.1.2 AA",
94
+ id: "8.8.1",
95
+ elementType: "lang",
96
+ query: new query_1.ByTagQuery([
97
+ ":not(html)[lang]",
98
+ ":not(html)[xml\\:lang]"
99
+ ]),
100
+ attributes: [],
101
+ description: "if present, language switch must be revelant",
102
+ help: "check concerned lang or xml:lang attribute"
103
+ }),
61
104
  model_1.AutoCheckA11yRule.from({
62
105
  criterion: "8.10",
63
106
  wcag: "1.3.2 A",
@@ -66,7 +109,18 @@ exports.default = [
66
109
  query: new query_1.ByTagQuery([
67
110
  "[dir]:not([dir='rtl'], [dir='ltr'], [dir='auto'])"
68
111
  ]),
69
- description: "if present, dir attribute must be relevant",
112
+ description: "if present, dir attribute must be compliant",
113
+ help: "adapt value of dir attribute"
114
+ }),
115
+ model_1.ManualCheckA11yRule.from({
116
+ criterion: "8.10",
117
+ wcag: "1.3.2 A",
118
+ id: "8.10.2",
119
+ elementType: "mandatory - reading",
120
+ query: new query_1.ByTagQuery([
121
+ "[dir='rtl'], [dir='ltr']"
122
+ ]),
123
+ description: "if present, dir attribute must be compliant",
70
124
  help: "adapt value of dir attribute"
71
125
  })
72
126
  ];
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/a11y",
3
- "version": "1.0.0-beta.12",
3
+ "version": "1.0.0-beta.14",
4
4
  "type": "commonjs",
5
5
  "author": "Louis Fredice NJAKO MOLOM (https://github.com/luifr10) & Stanley SERVICAL (https://github.com/stanlee974)",
6
6
  "description": "A javascript lib for running a11y validation based on multiple reference(RGAA, etc)",
@@ -51,12 +51,13 @@
51
51
  "babel-loader": "^9.1.3",
52
52
  "babel-plugin-lodash": "^3.3.4",
53
53
  "chokidar": "^3.5.3",
54
- "jest-puppeteer": "^9.0.2",
54
+ "jest-junit": "^16.0.0",
55
+ "jest-puppeteer": "^10.0.0",
55
56
  "puppeteer": "^21.6.0",
56
57
  "tslib": "^2.3.0",
57
58
  "webpack": "^5.89.0",
58
59
  "webpack-cli": "^5.1.4",
59
- "webpack-dev-server": "^4.15.1"
60
+ "webpack-dev-server": "^5.0.2"
60
61
  },
61
62
  "files": [
62
63
  "dist/**/*",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/a11y",
3
- "version": "1.0.0-beta.13",
3
+ "version": "1.0.0-beta.15",
4
4
  "type": "commonjs",
5
5
  "author": "Louis Fredice NJAKO MOLOM (https://github.com/luifr10) & Stanley SERVICAL (https://github.com/stanlee974)",
6
6
  "description": "A javascript lib for running a11y validation based on multiple reference(RGAA, etc)",
@@ -51,12 +51,13 @@
51
51
  "babel-loader": "^9.1.3",
52
52
  "babel-plugin-lodash": "^3.3.4",
53
53
  "chokidar": "^3.5.3",
54
- "jest-puppeteer": "^9.0.2",
54
+ "jest-junit": "^16.0.0",
55
+ "jest-puppeteer": "^10.0.0",
55
56
  "puppeteer": "^21.6.0",
56
57
  "tslib": "^2.3.0",
57
58
  "webpack": "^5.89.0",
58
59
  "webpack-cli": "^5.1.4",
59
- "webpack-dev-server": "^4.15.1"
60
+ "webpack-dev-server": "^5.0.2"
60
61
  },
61
62
  "files": [
62
63
  "dist/**/*",