@uuv/runner-commons 2.1.0 → 2.2.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/CHANGELOG.md +7 -0
- package/README.md +4 -0
- package/dist/assets/i18n/web/en/en-enriched-wordings.json +1 -1
- package/dist/assets/i18n/web/en/en.json +29 -19
- package/dist/assets/i18n/web/template.json +5 -1
- package/dist/step-definition-generator/generate-base-step-definitions.js +3 -1
- package/dist/step-definition-generator/generate-based-role-step-definitions.js +2 -1
- package/dist/step-definition-generator/generate-step-definitions-documentation.js +23 -7
- package/package.json +1 -1
- package/src/assets/i18n/web/en/en-enriched-wordings.json +1 -1
- package/src/assets/i18n/web/en/en.json +29 -19
- package/src/assets/i18n/web/fr/fr.json +28 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.2.0](https://github.com/Orange-OpenSource/uuv/compare/runner-commons-v2.1.0...runner-commons-v2.2.0) (2024-01-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **a11y:** initialize @uuv/a11y lib, [#330](https://github.com/Orange-OpenSource/uuv/issues/330) ([3c27ac5](https://github.com/Orange-OpenSource/uuv/commit/3c27ac5a1698a407289123aac85e500508e2d8c6))
|
|
7
|
+
|
|
1
8
|
# [2.1.0](https://github.com/Orange-OpenSource/uuv/compare/runner-commons-v2.0.3...runner-commons-v2.1.0) (2023-12-28)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -42,6 +42,10 @@ A solution to facilitate the writing and execution of E2E tests understandable b
|
|
|
42
42
|
<img alt="@uuv/assistant npm library download count"
|
|
43
43
|
src="https://img.shields.io/npm/dt/%40uuv/assistant?logo=npm&label=%40uuv%2Fassistant"></img>
|
|
44
44
|
</a>
|
|
45
|
+
<a href="https://www.npmjs.com/package/@uuv/a11y" target="_blank">
|
|
46
|
+
<img alt="@uuv/a11y npm library download count"
|
|
47
|
+
src="https://img.shields.io/npm/dt/%40uuv/a11y?logo=npm&label=%40uuv%2Fa11y"></img>
|
|
48
|
+
</a>
|
|
45
49
|
<a href="https://plugins.jetbrains.com/plugin/22437-uuv" target="_blank">
|
|
46
50
|
<img alt="JetBrains Plugin Downloads" src="https://img.shields.io/jetbrains/plugin/d/22437-uuv?logo=jetbrains&label=UUV%20plugin"></img>
|
|
47
51
|
</a>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"enriched": [
|
|
3
3
|
{
|
|
4
4
|
"key": "key.when.withinElement.roleAndName",
|
|
5
|
-
"description": "Selects the element whose [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types and accessible [name](https://russmaxdesign.github.io/html-elements-names/) are specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
5
|
+
"description": "Selects the element whose [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and accessible [name](https://russmaxdesign.github.io/html-elements-names/) are specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
6
6
|
"wording": "within $indefiniteArticle $roleName named {string}"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"key": "key.when.withinElement.roleAndName",
|
|
74
|
-
"description": "Selects the element whose [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types and accessible [name](https://russmaxdesign.github.io/html-elements-names/) are specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
74
|
+
"description": "Selects the element whose [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and accessible [name](https://russmaxdesign.github.io/html-elements-names/) are specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
75
75
|
"wording": "within the element with role {string} and name {string}"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
@@ -190,33 +190,43 @@
|
|
|
190
190
|
"wording": "I wait {int} ms"
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
|
-
"key": "key.then.a11y.
|
|
194
|
-
"description": "Check that the current page have no
|
|
195
|
-
"wording": "I should not have any accessibility issue"
|
|
193
|
+
"key": "key.then.a11y.axecore.default",
|
|
194
|
+
"description": "Check that the current page have no accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md)",
|
|
195
|
+
"wording": "I should not have any axe-core accessibility issue"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
"key": "key.then.a11y.
|
|
199
|
-
"description": "Check that the current page have no accessibility issue [with an option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter) on the specific [context](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#context-parameter)",
|
|
200
|
-
"wording": "I should not have any accessibility issue with context json fixture {} and option json fixture {}"
|
|
198
|
+
"key": "key.then.a11y.axecore.withFixtureContextAndFixtureOption",
|
|
199
|
+
"description": "Check that the current page have no accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) [with an option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter) on the specific [context](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#context-parameter)",
|
|
200
|
+
"wording": "I should not have any axe-core accessibility issue with context json fixture {} and option json fixture {}"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
|
-
"key": "key.then.a11y.
|
|
204
|
-
"description": "Check that the current page have no accessibility issue [with an option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter)",
|
|
205
|
-
"wording": "I should not have any accessibility issue with option json fixture {}"
|
|
203
|
+
"key": "key.then.a11y.axecore.withFixtureOption",
|
|
204
|
+
"description": "Check that the current page have no accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) [with an option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter)",
|
|
205
|
+
"wording": "I should not have any axe-core accessibility issue with option json fixture {}"
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
"key": "key.then.a11y.
|
|
209
|
-
"description": "Check that the current page have not critical accessibility issue",
|
|
210
|
-
"wording": "I should not have any critical accessibility issue"
|
|
208
|
+
"key": "key.then.a11y.axecore.onlyCritical",
|
|
209
|
+
"description": "Check that the current page have not critical accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md)",
|
|
210
|
+
"wording": "I should not have any axe-core critical accessibility issue"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
"key": "key.then.a11y.
|
|
214
|
-
"description": "Check that the current page have not accessibility issue with one or more impacts in: 'minor','moderate','serious','critical'",
|
|
215
|
-
"wording": "I should not have any accessibility issue with {} impact(s)"
|
|
213
|
+
"key": "key.then.a11y.axecore.withImpacts",
|
|
214
|
+
"description": "Check that the current page have not accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) with one or more impacts in: 'minor','moderate','serious','critical'",
|
|
215
|
+
"wording": "I should not have any axe-core accessibility issue with {} impact(s)"
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
"key": "key.then.a11y.
|
|
219
|
-
"description": "Check that the current page have not accessibility issue [with one or more Accessibility Standards](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#axe-core-tags)",
|
|
220
|
-
"wording": "I should not have any accessibility issue with accessibility standard(s) {}"
|
|
218
|
+
"key": "key.then.a11y.axecore.withTags",
|
|
219
|
+
"description": "Check that the current page have not accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) [with one or more Accessibility Standards](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#axe-core-tags)",
|
|
220
|
+
"wording": "I should not have any axe-core accessibility issue with accessibility standard(s) {}"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"key": "key.then.a11y.rgaa.default",
|
|
224
|
+
"description": "Check that the current page have no [accessibility issue](https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/) with one of reference : RGAA",
|
|
225
|
+
"wording": "I should not have any rgaa accessibility issue"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"key": "key.then.a11y.rgaa.defaultWithResult",
|
|
229
|
+
"description": "Check that the current page have the following [result](https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/) with one of reference : RGAA",
|
|
230
|
+
"wording": "I should have the following result based on the rgaa reference"
|
|
221
231
|
}
|
|
222
232
|
]
|
|
@@ -66,13 +66,17 @@
|
|
|
66
66
|
"withValues": ""
|
|
67
67
|
},
|
|
68
68
|
"a11y": {
|
|
69
|
-
"
|
|
69
|
+
"axecore": {
|
|
70
70
|
"default": "",
|
|
71
71
|
"withFixtureOption": "",
|
|
72
72
|
"withFixtureContextAndFixtureOption": "",
|
|
73
73
|
"onlyCritical": "",
|
|
74
74
|
"withImpacts": "",
|
|
75
75
|
"withTags": ""
|
|
76
|
+
},
|
|
77
|
+
"rgaa": {
|
|
78
|
+
"default": "",
|
|
79
|
+
"defaultWithResult": ""
|
|
76
80
|
}
|
|
77
81
|
}
|
|
78
82
|
}
|
|
@@ -70,11 +70,13 @@ class BaseStepDefinition extends common_1.GenerateFileProcessing {
|
|
|
70
70
|
.replace("import {key} from \"@uuv/runner-commons/wording/web\";", "")
|
|
71
71
|
.replace("import { key } from \"@uuv/runner-commons/wording/web\";", "")
|
|
72
72
|
.replace("./core-engine", "../core-engine")
|
|
73
|
-
.replace("../../preprocessor/run/world", "../../../preprocessor/run/world")
|
|
73
|
+
.replace("../../preprocessor/run/world", "../../../preprocessor/run/world")
|
|
74
|
+
.replace("./a11y-engine", "../a11y-engine");
|
|
74
75
|
const wordings = common_1.fs.readFileSync(wordingFile);
|
|
75
76
|
const wordingsJson = JSON.parse(wordings.toString());
|
|
76
77
|
wordingsJson.forEach((conf) => {
|
|
77
78
|
data = data.replace("${" + conf.key + "}", conf.wording);
|
|
79
|
+
data = data.replace(conf.key + ".description", conf.description);
|
|
78
80
|
// console.debug(conf, data)
|
|
79
81
|
});
|
|
80
82
|
return data;
|
|
@@ -88,7 +88,8 @@ class BasedRoleStepDefinition extends common_1.GenerateFileProcessing {
|
|
|
88
88
|
.replaceAll("$definiteArticle", role.getDefiniteArticle())
|
|
89
89
|
.replaceAll("$indefiniteArticle", role.getIndefiniteArticle())
|
|
90
90
|
.replaceAll("$namedAdjective", role.namedAdjective())
|
|
91
|
-
.replaceAll("$ofDefiniteArticle", role.getOfDefiniteArticle())
|
|
91
|
+
.replaceAll("$ofDefiniteArticle", role.getOfDefiniteArticle())
|
|
92
|
+
.replaceAll(conf.key + ".description", conf.description);
|
|
92
93
|
});
|
|
93
94
|
const generatedFilename = generatedFile.replace("$roleId", role.id);
|
|
94
95
|
// console.debug(">>> data", dataUpdated)
|
|
@@ -51,8 +51,8 @@ class AutocompletionSuggestion {
|
|
|
51
51
|
}
|
|
52
52
|
exports.AutocompletionSuggestion = AutocompletionSuggestion;
|
|
53
53
|
function runGenerateDoc(destDir) {
|
|
54
|
-
const GENERATED_DIR_DOC = `${destDir}/docs/
|
|
55
|
-
const GENERATED_DIR_DOC_FR = `${destDir}/i18n/fr/docusaurus-plugin-content-docs/current/
|
|
54
|
+
const GENERATED_DIR_DOC = `${destDir}/docs/04-wordings/01-generated-wording-description`;
|
|
55
|
+
const GENERATED_DIR_DOC_FR = `${destDir}/i18n/fr/docusaurus-plugin-content-docs/current/04-wordings/01-generated-wording-description`;
|
|
56
56
|
Object.values(lang_enum_1.LANG).forEach((lang, index) => {
|
|
57
57
|
const indexOfFile = (index + 1).toLocaleString("fr-FR", {
|
|
58
58
|
minimumIntegerDigits: 2,
|
|
@@ -80,9 +80,11 @@ function runGenerateDoc(destDir) {
|
|
|
80
80
|
common_1.Common.writeWordingFile(autocompletionSuggestionFile, autocompletionSuggestionContent);
|
|
81
81
|
}
|
|
82
82
|
function computeWordingFile(wordingBaseFile, wordingEnrichedFile, lang) {
|
|
83
|
-
const wordingsBase = fs_1.default.readFileSync(wordingBaseFile);
|
|
84
|
-
const wordingsBaseJson = JSON.parse(wordingsBase.toString());
|
|
83
|
+
const wordingsBase = fs_1.default.readFileSync(wordingBaseFile, { encoding: "utf8" });
|
|
85
84
|
const wordingsEnriched = fs_1.default.readFileSync(wordingEnrichedFile, { encoding: "utf8" });
|
|
85
|
+
const wordingEnrichedNormalized = normalizedMdxData(wordingsEnriched);
|
|
86
|
+
const wordingBaseNormalized = normalizedMdxData(wordingsBase);
|
|
87
|
+
const wordingsBaseJson = JSON.parse(wordingBaseNormalized);
|
|
86
88
|
const title = (function () {
|
|
87
89
|
switch (lang) {
|
|
88
90
|
case lang_enum_1.LANG.FR.toString():
|
|
@@ -91,7 +93,7 @@ function runGenerateDoc(destDir) {
|
|
|
91
93
|
"Pensez bien à rajouter `#language: fr` en entête de votre fichier feature.\n" +
|
|
92
94
|
":::\n\n");
|
|
93
95
|
default:
|
|
94
|
-
return "#
|
|
96
|
+
return "# English";
|
|
95
97
|
}
|
|
96
98
|
})();
|
|
97
99
|
const autocompletionComponent = `\nimport {UuvWordingAutocomplete} from '@site/src/components/WordingAutocomplete/uuv-wording-autocomplete.js';\n\n<UuvWordingAutocomplete lang={'${lang}'}/>\n`;
|
|
@@ -113,7 +115,7 @@ function runGenerateDoc(destDir) {
|
|
|
113
115
|
rows.push(...given, ...when, ...then);
|
|
114
116
|
autocompletionSuggestions.push(...givenAutocompletionSuggestions, ...whenAutocompletionSuggestions, ...thenAutocompletionSuggestions);
|
|
115
117
|
rows.push("## Par rôle");
|
|
116
|
-
const dataOrigin =
|
|
118
|
+
const dataOrigin = wordingEnrichedNormalized;
|
|
117
119
|
let dataUpdated = dataOrigin;
|
|
118
120
|
// console.debug("roles", wordingsEnrichedJson.role)
|
|
119
121
|
const definedRoles = (0, common_1.getDefinedRoles)(lang);
|
|
@@ -162,13 +164,15 @@ function runGenerateDoc(destDir) {
|
|
|
162
164
|
step.push(wording);
|
|
163
165
|
step.push(`> ${conf.description ?? ""}\n`);
|
|
164
166
|
autocompletionSuggestion.push({
|
|
165
|
-
suggestion: conf.wording
|
|
167
|
+
suggestion: conf.wording
|
|
168
|
+
.replaceAll("\\", ""),
|
|
166
169
|
link: conf.wording
|
|
167
170
|
.replaceAll("{", "")
|
|
168
171
|
.replaceAll("}", "")
|
|
169
172
|
.replaceAll("(", "")
|
|
170
173
|
.replaceAll(")", "")
|
|
171
174
|
.replaceAll("'", "")
|
|
175
|
+
.replaceAll("\\", "")
|
|
172
176
|
.replaceAll(/\s/g, "-").toLowerCase()
|
|
173
177
|
});
|
|
174
178
|
}
|
|
@@ -182,5 +186,17 @@ function runGenerateDoc(destDir) {
|
|
|
182
186
|
fs_1.default.writeFileSync(generatedFile, data);
|
|
183
187
|
console.log(`[WRITE] ${indexOfFile}-${lang}-generated-wording-description.md written successfully`);
|
|
184
188
|
}
|
|
189
|
+
function normalizedMdxData(data) {
|
|
190
|
+
return data.replaceAll("{string}", "\\\\{string\\\\}")
|
|
191
|
+
.replaceAll("{}", "\\\\{\\\\}")
|
|
192
|
+
.replaceAll("{int}", "\\\\{int\\\\}")
|
|
193
|
+
.replaceAll("{key}", "\\\\{key\\\\}")
|
|
194
|
+
.replaceAll("{reverseTab}", "\\\\{reverseTab\\\\}")
|
|
195
|
+
.replaceAll("{tab}", "\\\\{tab\\\\}")
|
|
196
|
+
.replaceAll("{down}", "\\\\{down\\\\}")
|
|
197
|
+
.replaceAll("{right}", "\\\\{right\\\\}")
|
|
198
|
+
.replaceAll("{left}", "\\\\{left\\\\}")
|
|
199
|
+
.replaceAll("{up}", "\\\\{up\\\\}");
|
|
200
|
+
}
|
|
185
201
|
}
|
|
186
202
|
exports.runGenerateDoc = runGenerateDoc;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"enriched": [
|
|
3
3
|
{
|
|
4
4
|
"key": "key.when.withinElement.roleAndName",
|
|
5
|
-
"description": "Selects the element whose [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types and accessible [name](https://russmaxdesign.github.io/html-elements-names/) are specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
5
|
+
"description": "Selects the element whose [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and accessible [name](https://russmaxdesign.github.io/html-elements-names/) are specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
6
6
|
"wording": "within $indefiniteArticle $roleName named {string}"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"key": "key.when.withinElement.roleAndName",
|
|
74
|
-
"description": "Selects the element whose [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types and accessible [name](https://russmaxdesign.github.io/html-elements-names/) are specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
74
|
+
"description": "Selects the element whose [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and accessible [name](https://russmaxdesign.github.io/html-elements-names/) are specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
75
75
|
"wording": "within the element with role {string} and name {string}"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
@@ -190,33 +190,43 @@
|
|
|
190
190
|
"wording": "I wait {int} ms"
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
|
-
"key": "key.then.a11y.
|
|
194
|
-
"description": "Check that the current page have no
|
|
195
|
-
"wording": "I should not have any accessibility issue"
|
|
193
|
+
"key": "key.then.a11y.axecore.default",
|
|
194
|
+
"description": "Check that the current page have no accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md)",
|
|
195
|
+
"wording": "I should not have any axe-core accessibility issue"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
"key": "key.then.a11y.
|
|
199
|
-
"description": "Check that the current page have no accessibility issue [with an option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter) on the specific [context](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#context-parameter)",
|
|
200
|
-
"wording": "I should not have any accessibility issue with context json fixture {} and option json fixture {}"
|
|
198
|
+
"key": "key.then.a11y.axecore.withFixtureContextAndFixtureOption",
|
|
199
|
+
"description": "Check that the current page have no accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) [with an option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter) on the specific [context](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#context-parameter)",
|
|
200
|
+
"wording": "I should not have any axe-core accessibility issue with context json fixture {} and option json fixture {}"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
|
-
"key": "key.then.a11y.
|
|
204
|
-
"description": "Check that the current page have no accessibility issue [with an option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter)",
|
|
205
|
-
"wording": "I should not have any accessibility issue with option json fixture {}"
|
|
203
|
+
"key": "key.then.a11y.axecore.withFixtureOption",
|
|
204
|
+
"description": "Check that the current page have no accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) [with an option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter)",
|
|
205
|
+
"wording": "I should not have any axe-core accessibility issue with option json fixture {}"
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
"key": "key.then.a11y.
|
|
209
|
-
"description": "Check that the current page have not critical accessibility issue",
|
|
210
|
-
"wording": "I should not have any critical accessibility issue"
|
|
208
|
+
"key": "key.then.a11y.axecore.onlyCritical",
|
|
209
|
+
"description": "Check that the current page have not critical accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md)",
|
|
210
|
+
"wording": "I should not have any axe-core critical accessibility issue"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
"key": "key.then.a11y.
|
|
214
|
-
"description": "Check that the current page have not accessibility issue with one or more impacts in: 'minor','moderate','serious','critical'",
|
|
215
|
-
"wording": "I should not have any accessibility issue with {} impact(s)"
|
|
213
|
+
"key": "key.then.a11y.axecore.withImpacts",
|
|
214
|
+
"description": "Check that the current page have not accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) with one or more impacts in: 'minor','moderate','serious','critical'",
|
|
215
|
+
"wording": "I should not have any axe-core accessibility issue with {} impact(s)"
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
"key": "key.then.a11y.
|
|
219
|
-
"description": "Check that the current page have not accessibility issue [with one or more Accessibility Standards](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#axe-core-tags)",
|
|
220
|
-
"wording": "I should not have any accessibility issue with accessibility standard(s) {}"
|
|
218
|
+
"key": "key.then.a11y.axecore.withTags",
|
|
219
|
+
"description": "Check that the current page have not accessibility issue for [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) [with one or more Accessibility Standards](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#axe-core-tags)",
|
|
220
|
+
"wording": "I should not have any axe-core accessibility issue with accessibility standard(s) {}"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"key": "key.then.a11y.rgaa.default",
|
|
224
|
+
"description": "Check that the current page have no [accessibility issue](https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/) with one of reference : RGAA",
|
|
225
|
+
"wording": "I should not have any rgaa accessibility issue"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"key": "key.then.a11y.rgaa.defaultWithResult",
|
|
229
|
+
"description": "Check that the current page have the following [result](https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/) with one of reference : RGAA",
|
|
230
|
+
"wording": "I should have the following result based on the rgaa reference"
|
|
221
231
|
}
|
|
222
232
|
]
|
|
@@ -190,33 +190,43 @@
|
|
|
190
190
|
"wording": "j'attends {int} ms"
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
|
-
"key": "key.then.a11y.
|
|
194
|
-
"description": "Vérifie sur la page courante qu'il n'y a aucune
|
|
195
|
-
"wording": "je ne dois pas avoir de problèmes d'accessibilité"
|
|
193
|
+
"key": "key.then.a11y.axecore.default",
|
|
194
|
+
"description": "Vérifie sur la page courante qu'il n'y a aucune erreur d'accessibilité [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md)",
|
|
195
|
+
"wording": "je ne dois pas avoir de problèmes d'accessibilité axe-core"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
"key": "key.then.a11y.
|
|
199
|
-
"description": "Vérifie sur la page courante qu'il n'y a aucune erreur d'accessibilité [avec l'option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter)",
|
|
200
|
-
"wording": "je ne dois pas avoir de problèmes d'accessibilité avec le fichier json suivant d'option {}"
|
|
198
|
+
"key": "key.then.a11y.axecore.withFixtureOption",
|
|
199
|
+
"description": "Vérifie sur la page courante qu'il n'y a aucune erreur d'accessibilité [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) [avec l'option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter)",
|
|
200
|
+
"wording": "je ne dois pas avoir de problèmes d'accessibilité axe-core avec le fichier json suivant d'option {}"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
|
-
"key": "key.then.a11y.
|
|
204
|
-
"description": "Vérifie sur la page courante qu'il n'y a aucune erreur d'accessibilité [avec l'option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter) sur le [contexte donné](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#context-parameter)",
|
|
205
|
-
"wording": "je ne dois pas avoir de problèmes d'accessibilité sur le fichier json suivant de contexte {} et avec le fichier json suivant d'option {}"
|
|
203
|
+
"key": "key.then.a11y.axecore.withFixtureContextAndFixtureOption",
|
|
204
|
+
"description": "Vérifie sur la page courante qu'il n'y a aucune erreur d'accessibilité [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) [avec l'option](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#options-parameter) sur le [contexte donné](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#context-parameter)",
|
|
205
|
+
"wording": "je ne dois pas avoir de problèmes d'accessibilité axe-core sur le fichier json suivant de contexte {} et avec le fichier json suivant d'option {}"
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
"key": "key.then.a11y.
|
|
209
|
-
"description": "Vérifie sur la page courante qu'il n'y a aucune erreur d'accessibilité de niveau critique",
|
|
210
|
-
"wording": "je ne dois pas avoir de problèmes d'accessibilité de niveau critique"
|
|
208
|
+
"key": "key.then.a11y.axecore.onlyCritical",
|
|
209
|
+
"description": "Vérifie sur la page courante qu'il n'y a aucune erreur d'accessibilité [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) de niveau critique",
|
|
210
|
+
"wording": "je ne dois pas avoir de problèmes d'accessibilité axe-core de niveau critique"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
"key": "key.then.a11y.
|
|
214
|
-
"description": "Vérifie sur la page courante qu'il n'y a aucune erreur d'accessibilité avec un ou plusieurs impacts parmi : 'minor','moderate','serious','critical'",
|
|
215
|
-
"wording": "je ne dois pas avoir de problèmes d'accessibilité avec l(es) impact(s) {}"
|
|
213
|
+
"key": "key.then.a11y.axecore.withImpacts",
|
|
214
|
+
"description": "Vérifie sur la page courante qu'il n'y a aucune erreur d'accessibilité [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md)avec un ou plusieurs impacts parmi : 'minor','moderate','serious','critical'",
|
|
215
|
+
"wording": "je ne dois pas avoir de problèmes d'accessibilité axe-core avec l(es) impact(s) {}"
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
"key": "key.then.a11y.
|
|
219
|
-
"description": "Vérifie sur la page courante qu'il n'y a aucune erreur d'accessibilité [avec le ou les standards d'accessibilité](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#axe-core-tags)",
|
|
220
|
-
"wording": "je ne dois pas avoir de problèmes d'accessibilité avec le(s) standard(s) {}"
|
|
218
|
+
"key": "key.then.a11y.axecore.withTags",
|
|
219
|
+
"description": "Vérifie sur la page courante qu'il n'y a aucune erreur d'accessibilité [axe-core](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md) [avec le ou les standards d'accessibilité](https://github.com/dequelabs/axe-core/blob/HEAD/doc/API.md#axe-core-tags)",
|
|
220
|
+
"wording": "je ne dois pas avoir de problèmes d'accessibilité axe-core avec le(s) standard(s) {}"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"key": "key.then.a11y.rgaa.default",
|
|
224
|
+
"description": "Vérifie sur la page courante qu'il n'y a aucune [erreur de conformité d'accessibilité](https://la-va11ydette.orange.com) avec un des référentiels : WCAG-WEB, RGAA et une des versions 4.1",
|
|
225
|
+
"wording": "je ne dois pas avoir de problèmes d'accessibilité rgaa"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"key": "key.then.a11y.rgaa.defaultWithResult",
|
|
229
|
+
"description": "Vérifie sur la page courante qu'il n'y a aucune [erreur de conformité d'accessibilité](https://la-va11ydette.orange.com)",
|
|
230
|
+
"wording": "je dois avoir les résultats suivants selon le référentiel rgaa"
|
|
221
231
|
}
|
|
222
232
|
]
|