@uuv/dictionary 0.0.1
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/.eslintignore +2 -0
- package/.eslintrc.js +100 -0
- package/LICENSE +22 -0
- package/README.md +57 -0
- package/dist/README.md +57 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +20 -0
- package/dist/lib/accessible-role.d.ts +13 -0
- package/dist/lib/accessible-role.js +13 -0
- package/dist/lib/dictionary.d.ts +32 -0
- package/dist/lib/dictionary.js +71 -0
- package/dist/lib/web/en/en-enriched-wordings.json +106 -0
- package/dist/lib/web/en/en-roles.d.ts +2 -0
- package/dist/lib/web/en/en-roles.js +137 -0
- package/dist/lib/web/en/en.json +314 -0
- package/dist/lib/web/en/index.d.ts +24 -0
- package/dist/lib/web/en/index.js +20 -0
- package/dist/lib/web/fr/fr-enriched-wordings.json +106 -0
- package/dist/lib/web/fr/fr-roles.d.ts +2 -0
- package/dist/lib/web/fr/fr-roles.js +599 -0
- package/dist/lib/web/fr/fr.json +314 -0
- package/dist/lib/web/fr/index.d.ts +21 -0
- package/dist/lib/web/fr/index.js +14 -0
- package/dist/lib/web/index.d.ts +2 -0
- package/dist/lib/web/index.js +6 -0
- package/dist/lib/web/template.json +126 -0
- package/dist/package.json +47 -0
- package/jest.config.ts +19 -0
- package/package.json +47 -0
- package/project.json +124 -0
- package/src/index.ts +18 -0
- package/src/lib/accessible-role.ts +17 -0
- package/src/lib/dictionary.spec.ts +140 -0
- package/src/lib/dictionary.ts +102 -0
- package/src/lib/web/en/en-enriched-wordings.json +107 -0
- package/src/lib/web/en/en-roles.ts +144 -0
- package/src/lib/web/en/en.json +314 -0
- package/src/lib/web/en/index.ts +16 -0
- package/src/lib/web/fr/fr-enriched-wordings.json +106 -0
- package/src/lib/web/fr/fr-roles.ts +602 -0
- package/src/lib/web/fr/fr.json +314 -0
- package/src/lib/web/fr/index.ts +10 -0
- package/src/lib/web/index.ts +2 -0
- package/src/lib/web/template.json +126 -0
- package/tsconfig.json +24 -0
- package/tsconfig.lib.json +10 -0
- package/tsconfig.spec.json +10 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"key": "key.when.click.withContext",
|
|
4
|
+
"description": "Triggers a click on the selected element.<br/>Make sure you've selected an element beforehand with the <strong>within...</strong> phrases.",
|
|
5
|
+
"wording": "I click"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"key": "key.when.click.withRole",
|
|
9
|
+
"description": "Triggers a click on the element with given role and specific name",
|
|
10
|
+
"wording": "I click on element with role {string} and name {string}"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"key": "key.when.headers.forUriAndMethod",
|
|
14
|
+
"description": "Sets one or more headers to the indicated http request and only for the Http method (GET / POST / etc...) passed as a argument.<i> If you use Playwright as execution engine, <b>method</b> isn't used.</i>",
|
|
15
|
+
"wording": "I set header(s) for uri {string} and method {string}"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"key": "key.when.headers.forUri",
|
|
19
|
+
"description": "Sets one or more headers to the indicated http request",
|
|
20
|
+
"wording": "I set header(s) for uri {string}"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "key.when.resetContext",
|
|
24
|
+
"description": "Deletes selected element and timeout",
|
|
25
|
+
"wording": "I reset context"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"key": "key.when.timeout",
|
|
29
|
+
"description": "Sets the timeout value (in millisecond) for finding element in the DOM <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
30
|
+
"wording": "I set timeout with value {int}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "key.when.type.withContext",
|
|
34
|
+
"description": "Writes the sentence passed as a parameter (useful for example to fill in a form field).<br/>Make sure you've selected an element beforehand with the <strong>within...</strong> phrases.",
|
|
35
|
+
"wording": "I type the sentence {string}"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"key": "key.when.type.withContextInGridCell",
|
|
39
|
+
"description": "Writes the sentence passed as a parameter in the ag-Grid cell at the specified row and column name (useful for example to fill in a form field in ag-Grid).<br/>Make sure you've selected an ag-Grid element beforehand with the <strong>within...</strong> phrases.",
|
|
40
|
+
"wording": "I type the sentence {string} in aggrid cell at the row {int} and column named {string}"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"key": "key.when.enter.withContext",
|
|
44
|
+
"description": "Writes the sentence passed as a parameter (useful for example to fill in a form field).<br/>Make sure you've selected an element beforehand with the <strong>within...</strong> phrases.",
|
|
45
|
+
"wording": "I enter the value {string}"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"key": "key.when.select.withContext",
|
|
49
|
+
"description": "Select the combo box option passed as a parameter (useful for example to fill in a combobox form field).<br/>Make sure you've selected a combo box element beforehand with the <strong>within a combo box named 'yourComboboxNamee'</strong> phrases.",
|
|
50
|
+
"wording": "I select the value {string}"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"key": "key.when.keyboard.press",
|
|
54
|
+
"description": "Press specified key: <table><thead><tr><th>Key</th><th>Description</th></tr></thead><tbody><tr><td>{tab}</td><td>Tabulation</td></tr><tr><td>{reverseTab}</td><td>Reverse tabulation</td></tr><tr><td>{down}</td><td>Arrow Down</td></tr><tr><td>{right}</td><td>Arrow Right</td></tr><tr><td>{left}</td><td>Arrow Left</td></tr><tr><td>{up}</td><td>Arrow Up</td></tr></tbody></table><br/>Make sure you've selected an element beforehand with the <strong>within...</strong> phrases.",
|
|
55
|
+
"wording": "I press {string}"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "key.when.keyboard.multiplePress",
|
|
59
|
+
"description": "Press specified key multiple times using | as: num|{key}",
|
|
60
|
+
"wording": "I press {int} times on {string}"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"key": "key.when.keyboard.nextElement",
|
|
64
|
+
"description": "Move to the next html element that can be reached with Tab<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/en-keyboard.feature'>Examples</a>",
|
|
65
|
+
"wording": "I go to next keyboard element"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"key": "key.when.keyboard.previousElement",
|
|
69
|
+
"description": "Move to the previous html element that can be reached with back Tab<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/en-keyboard.feature'>Examples</a>",
|
|
70
|
+
"wording": "I go to previous keyboard element"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"key": "key.when.visit",
|
|
74
|
+
"description": "Navigate to the Uri passed as a argument (full url consisting of the BASE_URL + Uri) or navigate to Url if begin with http:// or https://",
|
|
75
|
+
"wording": "I visit path {string}"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"key": "key.when.withinElement.ariaLabel",
|
|
79
|
+
"description": "Selects the element whose aria-label is specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
80
|
+
"wording": "within the element with aria-label {string}"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"key": "key.when.withinElement.selector",
|
|
84
|
+
"description": "Selects the element whose selector is specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
85
|
+
"wording": "within the element with selector {string}"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"key": "key.when.withinElement.roleAndName",
|
|
89
|
+
"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",
|
|
90
|
+
"wording": "within the element with role {string} and name {string}"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"key": "key.when.withinElement.testId",
|
|
94
|
+
"description": "Selects the element whose data-testId attribute is specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
|
|
95
|
+
"wording": "within the element with testId {string}"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"key": "key.when.mock.withBody",
|
|
99
|
+
"description": "Mock a named API response with body. <i>If you use Playwright as runtime engine, <b>request</b> and <b>named</b> are unused.</i>",
|
|
100
|
+
"wording": "I mock a request {} on url {string} named {string} with content {}"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"key": "key.when.mock.withFixture",
|
|
104
|
+
"description": "Mock a named API response with file's extension .json, .js, .coffee, .html, .txt, .csv, .png, .jpg, .jpeg, .gif, .tif, .tiff, .zip",
|
|
105
|
+
"wording": "I mock a request {} on url {string} named {string} with fixture {}"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"key": "key.when.mock.withStatusCode",
|
|
109
|
+
"description": "Mock a named API response with status code",
|
|
110
|
+
"wording": "I mock a request {} on url {string} named {string} with status code {int}"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"key": "key.given.viewport.preset",
|
|
114
|
+
"description": "Sets the viewport dimensions with one of the presets defined by your runtime engine as Cypress: [Link](https://docs.cypress.io/api/commands/viewport#Arguments) or Playwright: [Link](https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/deviceDescriptorsSource.json)",
|
|
115
|
+
"wording": "I set viewport to preset {string}"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"key": "key.given.viewport.withWidthAndHeight",
|
|
119
|
+
"description": "Sets the viewport dimensions to the specified width and length",
|
|
120
|
+
"wording": "I set viewport with width {int} and height {int}"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"key": "key.given.keyboard.startNavigationFromTheTop",
|
|
124
|
+
"description": "Start a keyboard navigation session from the top of the page<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/en-keyboard.feature'>Examples</a>",
|
|
125
|
+
"wording": "I start a keyboard navigation from the top of the page"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"key": "key.then.page.withTitle",
|
|
129
|
+
"description": "Checks the current html page have the specified title",
|
|
130
|
+
"wording": "I should see the page title {string}"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"key": "key.then.title.withNameAndLevel",
|
|
134
|
+
"description": "Checks that an Html element exists with [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) `heading`, the specified [name](https://russmaxdesign.github.io/html-elements-names/) and title level",
|
|
135
|
+
"wording": "I should see a title named {string} with level {int}"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"key": "key.then.attributes.withValues",
|
|
139
|
+
"description": "Checks Html attributes of the selected element",
|
|
140
|
+
"wording": "I should see these attributes with values"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"key": "key.then.element.withAriaLabelAndContent",
|
|
144
|
+
"description": "Checks that an Html element exists with the specified aria-label attribute and content",
|
|
145
|
+
"wording": "I should see an element with aria-label {string} and content {string}"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"key": "key.then.element.withAriaLabel",
|
|
149
|
+
"description": "Checks that an Html element exists with the specified aria-label attribute",
|
|
150
|
+
"wording": "I should see an element with aria-label {string}"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"key": "key.then.element.withContent",
|
|
154
|
+
"description": "Checks that an Html element exists with the specified content",
|
|
155
|
+
"wording": "I should see an element with content {string}"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"key": "key.then.element.withSelector",
|
|
159
|
+
"description": "Checks that an Html element exists with the specified selector",
|
|
160
|
+
"wording": "I should see an element with selector {string}"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"key": "key.then.element.withRoleAndNameAndContentDisabled",
|
|
164
|
+
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types), [name](https://russmaxdesign.github.io/html-elements-names/) and content, and with the disabled attribute set to true",
|
|
165
|
+
"wording": "I should see an element with role {string} and name {string} and content {string} disabled"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"key": "key.then.element.withRoleAndNameAndContentEnabled",
|
|
169
|
+
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types), [name](https://russmaxdesign.github.io/html-elements-names/) and content, and with the disabled attribute set to false",
|
|
170
|
+
"wording": "I should see an element with role {string} and name {string} and content {string} enabled"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"key": "key.then.element.withRoleAndNameAndContent",
|
|
174
|
+
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types), [name](https://russmaxdesign.github.io/html-elements-names/) and content",
|
|
175
|
+
"wording": "I should see an element with role {string} and name {string} and content {string}"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"key": "key.then.element.withSelectorFocused",
|
|
179
|
+
"description": "Checks that the Html element with the specified selector is focused<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/en-keyboard.feature'>Examples</a>",
|
|
180
|
+
"wording": "the element with selector {string} should be keyboard focused"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"key": "key.then.element.withRoleAndNameFocused",
|
|
184
|
+
"description": "Checks that the Html element with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/) is focused<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/en-keyboard.feature'>Examples</a>",
|
|
185
|
+
"wording": "the element with role {string} and name {string} should be keyboard focused"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"key": "key.then.element.withRoleAndName",
|
|
189
|
+
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/)",
|
|
190
|
+
"wording": "I should see an element with role {string} and name {string}"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"key": "key.then.element.withTestId",
|
|
194
|
+
"description": "Checks that an Html element exists with the specified data-testid attribute",
|
|
195
|
+
"wording": "I should see an element with testId {string}"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"key": "key.then.list.withNameAndContent",
|
|
199
|
+
"description": "Checks that there is a list with the specified [name](https://russmaxdesign.github.io/html-elements-names/) containing list items.<br/> <u>Example</u>\\n```gherkin\\nThen I should see a list named \"test-list\" and containing\\n| First element |\\n| Second element |\\n| Third element |\\n```",
|
|
200
|
+
"wording": "I should see a list named {string} and containing"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"key": "key.then.grid.withNameAndContent",
|
|
204
|
+
"description": "Checks that there is a grid with the specified [name](https://russmaxdesign.github.io/html-elements-names/) containing list items.<br/> <u>Example</u>\\n```gherkin\\nWhen I visit path \"https://e2e-test-quest.github.io/simple-webapp/grid.html\"\\nThen I should see a grid named \"HTML Grid Example\" and containing\\n| Make | Model | Price |\\n| ------------ | ------- | ------ |\\n| Toyota | Celica | 35000 |\\n| Ford | Mondeo | 32000 |\\n| Porsche | Boxster | 72000 |\\n| BMW | M50 | 60000 |\\n| Aston Martin | DBX | 190000 |\\n```",
|
|
205
|
+
"wording": "I should see a grid named {string} and containing"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"key": "key.then.treegrid.withNameAndContent",
|
|
209
|
+
"description": "Checks that there is a treegrid with the specified [name](https://russmaxdesign.github.io/html-elements-names/) containing list items.<br/> <u>Example</u>\\n```gherkin\\nWhen I visit path \"https://e2e-test-quest.github.io/simple-webapp/treegrid.html\"\\nThen I should see a treegrid named \"HTML Treegrid Example\" and containing\\n| Make | Model | Price |\\n| ------------ | ------- | ------ |\\n| Toyota | Celica | 35000 |\\n| Ford | Mondeo | 32000 |\\n| Porsche | Boxster | 72000 |\\n| BMW | M50 | 60000 |\\n| Aston Martin | DBX | 190000 |\\n```",
|
|
210
|
+
"wording": "I should see a treegrid named {string} and containing"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"key": "key.then.table.withNameAndContent",
|
|
214
|
+
"description": "Checks that there is a table with the specified [name](https://russmaxdesign.github.io/html-elements-names/) containing list items.<br/> <u>Example</u>\\n```gherkin\\nWhen I visit path \"https://e2e-test-quest.github.io/simple-webapp/table.html\"\\nThen I should see a table named \"test-list\" and containing\\n| Company | Contact | Country |\\n| ----------------------------- | ---------------- | ------- |\\n| Alfreds Futterkiste | Maria Anders | Germany |\\n| Centro comercial Moctezuma | Francisco Chang | Mexico |\\n| Ernst Handel | Roland Mendel | Austria |\\n| Island Trading | Helen Bennett | UK |\\n| Laughing Bacchus Winecellars | Yoshi Tannamuri | Canada |\\n| Magazzini Alimentari Riuniti | Giovanni Rovelli | Italy |\\n```",
|
|
215
|
+
"wording": "I should see a table named {string} and containing"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"key": "key.then.element.not.withContent",
|
|
219
|
+
"description": "Checks that an Html element does not exists with the specified content",
|
|
220
|
+
"wording": "I should not see an element with content {string}"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"key": "key.then.element.not.withTestId",
|
|
224
|
+
"description": "Checks that an Html element does not exists with the specified data-testid attribute",
|
|
225
|
+
"wording": "I should not see an element with testId {string}"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"key": "key.then.element.not.withRoleAndName",
|
|
229
|
+
"description": "Checks that an Html element does not exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/)",
|
|
230
|
+
"wording": "I should not see an element with role {string} and name {string}"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"key": "key.then.element.not.withAriaLabel",
|
|
234
|
+
"description": "Checks that an Html element does not exists with the specified aria-label attribute",
|
|
235
|
+
"wording": "I should not see an element with aria-label {string}"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"key": "key.then.element.nextWithRoleAndNameFocused",
|
|
239
|
+
"description": "Move to the next html element that can be reached with Tab and checks that the Html element with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/) is focused<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/en-keyboard.feature'>Examples</a>",
|
|
240
|
+
"wording": "the next keyboard element focused should have name {string} and role {string}",
|
|
241
|
+
"section": "keyboard"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"key": "key.then.element.previousWithRoleAndNameFocused",
|
|
245
|
+
"description": "Move to the previous html element that can be reached with Tab and checks that the Html element with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/) is focused<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/en-keyboard.feature'>Examples</a>",
|
|
246
|
+
"wording": "the previous keyboard element focused should have name {string} and role {string}",
|
|
247
|
+
"section": "keyboard"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"key": "key.then.wait.mock",
|
|
251
|
+
"description": "Wait that a named mock has been consumed until timeout",
|
|
252
|
+
"wording": "I should consume a mock named {string}"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"key": "key.then.wait.milliSeconds",
|
|
256
|
+
"description": "Wait milliseconds. <b>Warning:</b> use this sentence <b>in production</b> can make your <b>test flaky</b>.",
|
|
257
|
+
"wording": "I wait {int} ms"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"key": "key.then.a11y.axecore.default",
|
|
261
|
+
"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)",
|
|
262
|
+
"wording": "I should not have any axe-core accessibility issue"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"key": "key.then.a11y.axecore.withFixtureContextAndFixtureOption",
|
|
266
|
+
"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)",
|
|
267
|
+
"wording": "I should not have any axe-core accessibility issue with context json fixture {} and option json fixture {}"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"key": "key.then.a11y.axecore.withFixtureOption",
|
|
271
|
+
"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)",
|
|
272
|
+
"wording": "I should not have any axe-core accessibility issue with option json fixture {}"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"key": "key.then.a11y.axecore.onlyCritical",
|
|
276
|
+
"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)",
|
|
277
|
+
"wording": "I should not have any axe-core critical accessibility issue"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"key": "key.then.a11y.axecore.withImpacts",
|
|
281
|
+
"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'",
|
|
282
|
+
"wording": "I should not have any axe-core accessibility issue with {} impact(s)"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"key": "key.then.a11y.axecore.withTags",
|
|
286
|
+
"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)",
|
|
287
|
+
"wording": "I should not have any axe-core accessibility issue with accessibility standard(s) {}"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"key": "key.then.a11y.rgaa.default",
|
|
291
|
+
"description": "Check that the current page have no [accessibility issue](https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/) based on RGAA standards",
|
|
292
|
+
"wording": "I should not have any rgaa accessibility issue"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"key": "key.then.a11y.rgaa.defaultWithResult",
|
|
296
|
+
"description": "Check that the current page have the following [result](https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/) based on RGAA standard",
|
|
297
|
+
"wording": "I should have the following result based on the rgaa reference"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"key": "key.then.a11y.rgaa.defaultWithResultContaining",
|
|
301
|
+
"description": "Check that the current page have the following partial [result](https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/) based on RGAA standard",
|
|
302
|
+
"wording": "I should have the following partial result based on the rgaa reference"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"key": "key.then.combobox.withNameValue",
|
|
306
|
+
"description": "Check that the current page have the following partial [result](https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/) based on RGAA standard",
|
|
307
|
+
"wording": "I should see a combo box named {string} with value {string}"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"key": "key.then.combobox.selectValue",
|
|
311
|
+
"description": "Check that the current page have the following partial [result](https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/) based on RGAA standard",
|
|
312
|
+
"wording": "I select the value {string} in the combo box named {string}"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Dictionary } from "../../dictionary";
|
|
2
|
+
import { default as enSentences } from "./en.json";
|
|
3
|
+
import { default as enBasedRoleSentences } from "./en-enriched-wordings.json";
|
|
4
|
+
import { EN_ROLES } from "./en-roles";
|
|
5
|
+
|
|
6
|
+
export class EnDictionary extends Dictionary {
|
|
7
|
+
protected override baseSentences = enSentences;
|
|
8
|
+
protected override roleBasedSentencesTemplate = enBasedRoleSentences.enriched;
|
|
9
|
+
protected override roles = EN_ROLES;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { EN_ROLES } from "./en-roles";
|
|
13
|
+
|
|
14
|
+
export { default as enSentences } from "./en.json";
|
|
15
|
+
|
|
16
|
+
export { default as enBasedRoleSentences } from "./en-enriched-wordings.json";
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"enriched": [
|
|
3
|
+
{
|
|
4
|
+
"key": "key.when.withinElement.roleAndName",
|
|
5
|
+
"description": "Sélectionne l'élément ayant le rôle $roleId et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) sont spécifiés <br />⚠ pensez à déselectionner l'élement avec <b>[je reinitialise le contexte](#je-reinitialise-le-contexte)</b> si vous n'agissez plus dessus",
|
|
6
|
+
"wording": "je vais à l'intérieur $ofDefiniteArticle$roleName $namedAdjective {string}",
|
|
7
|
+
"section": "general"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"key": "key.then.element.withRoleAndName",
|
|
11
|
+
"description": "Vérifie l'existence d'un élément Html ayant le rôle $roleId et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) spécifiés",
|
|
12
|
+
"wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string}",
|
|
13
|
+
"section": "general"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "key.then.element.withRoleAndNameFocused",
|
|
17
|
+
"description": "Vérifie que l'élément Html avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) a le focus clavier<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/fr-keyboard.feature'>Exemples</a>",
|
|
18
|
+
"wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} avoir le focus clavier",
|
|
19
|
+
"section": "keyboard"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "key.then.element.nextWithRoleAndNameFocused",
|
|
23
|
+
"description": "Se déplace au prochain élément HTML atteignable avec la tabulation et vérifie que l'élément Html avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) a le focus clavier<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/fr-keyboard.feature'>Exemples</a>",
|
|
24
|
+
"wording": "le prochain élément avec le focus clavier doit être $indefiniteArticle $roleName $namedAdjective {string}",
|
|
25
|
+
"section": "keyboard"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"key": "key.then.element.previousWithRoleAndNameFocused",
|
|
29
|
+
"description": "Se déplace au précédent élément HTML atteignable avec la tabulation et vérifie que l'élément Html avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) a le focus clavier<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/fr-keyboard.feature'>Exemples</a>",
|
|
30
|
+
"wording": "le précédent élément avec le focus clavier doit être $indefiniteArticle $roleName $namedAdjective {string}",
|
|
31
|
+
"section": "keyboard"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "key.then.element.not.withRoleAndName",
|
|
35
|
+
"description": "Vérifie l'inexistence d'un élément Html ayant le rôle $roleId et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) spécifiés",
|
|
36
|
+
"wording": "je ne dois pas voir $indefiniteArticle $roleName $namedAdjective {string}",
|
|
37
|
+
"section": "general"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"key": "key.then.element.withRoleAndNameAndContent",
|
|
41
|
+
"description": "Vérifie l'existence d'un élément Html ayant le rôle $roleId, le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) et le contenu spécifiés",
|
|
42
|
+
"wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} et contenant {string}",
|
|
43
|
+
"section": "contains"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"key": "key.then.element.withRoleAndNameAndValue",
|
|
47
|
+
"description": "Vérifie l'existence d'un élément de formulaire (input) ayant le rôle $roleId, le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) et la valeur spécifiée",
|
|
48
|
+
"wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} avec la valeur {string}",
|
|
49
|
+
"section": "contains"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"key": "key.then.element.withRoleAndNameAndContentDisabled",
|
|
53
|
+
"description": "Vérifie l'existence d'un élément Html ayant le rôle $roleId, le [nom accessible](https://russmaxdesign.github.io/html-elements-names/), le contenu spécifiés et avec l'attribut disabled à false",
|
|
54
|
+
"wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} et contenant {string} désactivé",
|
|
55
|
+
"section": "contains"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "key.then.element.withRoleAndNameAndContentEnabled",
|
|
59
|
+
"description": "Vérifie l'existence d'un élément Html ayant le rôle $roleId, le [nom accessible](https://russmaxdesign.github.io/html-elements-names/), le contenu spécifiés et avec l'attribut disabled à true",
|
|
60
|
+
"wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} et contenant {string} activé",
|
|
61
|
+
"section": "contains"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"key": "key.then.element.withRoleAndNameDisabled",
|
|
65
|
+
"description": "Vérifie l'existence d'un élément Html ayant le rôle $roleId, le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) et avec l'attribut disabled à false",
|
|
66
|
+
"wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} désactivé",
|
|
67
|
+
"section": "contains"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"key": "key.then.element.withRoleAndNameEnabled",
|
|
71
|
+
"description": "Vérifie l'existence d'un élément Html ayant le rôle $roleId, le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) et avec l'attribut disabled à true",
|
|
72
|
+
"wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} activé",
|
|
73
|
+
"section": "contains"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"key": "key.when.type",
|
|
77
|
+
"description": "Saisie de la phrase passée en paramètre dans le champ spécifié (utile par exemple pour remplir un champ de formulaire).",
|
|
78
|
+
"wording": "je saisie le(s) mot(s) {string} dans $definiteArticle$roleName $namedAdjective {string}",
|
|
79
|
+
"section": "type"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"key": "key.then.element.withRoleAndNameAndChecked",
|
|
83
|
+
"description": "Vérifie l'existence d'un élément Html ayant le rôle $roleId, le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) et coché",
|
|
84
|
+
"wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} coché(e)",
|
|
85
|
+
"section": "checkable"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"key": "key.then.element.withRoleAndNameAndUnchecked",
|
|
89
|
+
"description": "Vérifie l'existence d'un élément Html ayant le rôle $roleId, le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) et décoché",
|
|
90
|
+
"wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} décoché(e)",
|
|
91
|
+
"section": "checkable"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"key": "key.when.enter",
|
|
95
|
+
"description": "Saisie de la phrase passée en paramètre dans le champ spécifié (utile par exemple pour remplir un champ de formulaire).",
|
|
96
|
+
"wording": "j'entre la valeur {string} dans $definiteArticle$roleName $namedAdjective {string}",
|
|
97
|
+
"section": "type"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"key": "key.when.click",
|
|
101
|
+
"description": "Déclenche un click sur l'élément Html ayant le rôle $roleId, le [nom accessible](https://russmaxdesign.github.io/html-elements-names/)",
|
|
102
|
+
"wording": "je clique sur $definiteArticle$roleName nommé {string}",
|
|
103
|
+
"section": "click"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|