@uuv/runner-commons 2.15.0 → 2.16.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/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [2.16.1](https://github.com/Orange-OpenSource/uuv/compare/runner-commons-v2.16.0...runner-commons-v2.16.1) (2024-06-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **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))
7
+
8
+ # [2.16.0](https://github.com/Orange-OpenSource/uuv/compare/runner-commons-v2.15.0...runner-commons-v2.16.0) (2024-05-31)
9
+
10
+
11
+ ### Features
12
+
13
+ * add keyboard navigation short sentences, closes [#642](https://github.com/Orange-OpenSource/uuv/issues/642) ([91c2665](https://github.com/Orange-OpenSource/uuv/commit/91c2665181318e21759196046acd37c81722e775))
14
+ * **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))
15
+
1
16
  # [2.15.0](https://github.com/Orange-OpenSource/uuv/compare/runner-commons-v2.14.0...runner-commons-v2.15.0) (2024-05-24)
2
17
 
3
18
 
@@ -18,6 +18,18 @@
18
18
  "wording": "I should see $indefiniteArticle $roleName named {string} keyboard focused",
19
19
  "section": "keyboard"
20
20
  },
21
+ {
22
+ "key": "key.then.element.nextWithRoleAndNameFocused",
23
+ "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",
24
+ "wording": "the next keyboard element focused should be $indefiniteArticle $roleName named {string}",
25
+ "section": "keyboard"
26
+ },
27
+ {
28
+ "key": "key.then.element.previousWithRoleAndNameFocused",
29
+ "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",
30
+ "wording": "the previous keyboard element focused should be $indefiniteArticle $roleName named {string}",
31
+ "section": "keyboard"
32
+ },
21
33
  {
22
34
  "key": "key.then.element.not.withRoleAndName",
23
35
  "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/)",
@@ -159,6 +159,11 @@
159
159
  "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",
160
160
  "wording": "I should see an element with role {string} and name {string} and content {string}"
161
161
  },
162
+ {
163
+ "key": "key.then.element.withSelectorFocused",
164
+ "description": "Checks that the Html element with the specified selector is focused",
165
+ "wording": "the element with selector {string} should be keyboard focused"
166
+ },
162
167
  {
163
168
  "key": "key.then.element.withRoleAndNameFocused",
164
169
  "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",
@@ -199,6 +204,18 @@
199
204
  "description": "Checks that an Html element does not exists with the specified aria-label attribute",
200
205
  "wording": "I should not see an element with aria-label {string}"
201
206
  },
207
+ {
208
+ "key": "key.then.element.nextWithRoleAndNameFocused",
209
+ "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",
210
+ "wording": "the next keyboard element focused should have name {string} and role {string}",
211
+ "section": "keyboard"
212
+ },
213
+ {
214
+ "key": "key.then.element.previousWithRoleAndNameFocused",
215
+ "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",
216
+ "wording": "the previous keyboard element focused should have name {string} and role {string}",
217
+ "section": "keyboard"
218
+ },
202
219
  {
203
220
  "key": "key.then.wait.mock",
204
221
  "description": "Wait that a named mock has been consumed until timeout",
@@ -47,11 +47,14 @@
47
47
  "withTestId": "",
48
48
  "withRoleAndNameAndContent": "",
49
49
  "withRoleAndNameFocused": "",
50
+ "nextWithRoleAndNameFocused": "",
51
+ "previousWithRoleAndNameFocused": "",
50
52
  "withRoleAndNameAndContentDisabled": "",
51
53
  "withRoleAndNameAndContentEnabled": "",
52
54
  "withAriaLabel": "",
53
55
  "withAriaLabelAndContent": "",
54
56
  "withSelector": "",
57
+ "withSelectorFocused": "",
55
58
  "not": {
56
59
  "withContent": "",
57
60
  "withRoleAndName": "",
@@ -72,7 +72,8 @@ class BaseStepDefinition extends common_1.GenerateFileProcessing {
72
72
  .replace("import { key } from \"@uuv/runner-commons/wording/web\";", "")
73
73
  .replace("./core-engine", "../core-engine")
74
74
  .replace("../../preprocessor/run/world", "../../../preprocessor/run/world")
75
- .replace("./a11y-engine", "../a11y-engine");
75
+ .replace("./a11y-engine", "../a11y-engine")
76
+ .replace("./_.common", "/../_.common");
76
77
  const wordings = common_1.fs.readFileSync(wordingFile);
77
78
  const wordingsJson = JSON.parse(wordings.toString());
78
79
  wordingsJson.forEach((conf) => {
@@ -76,7 +76,8 @@ class BasedRoleStepDefinition extends common_1.GenerateFileProcessing {
76
76
  .replace("import { key } from \"@uuv/runner-commons/wording/web\";", "")
77
77
  .replace("import {key} from \"@uuv/runner-commons/wording/web\";", "")
78
78
  .replace("./core-engine", "../../../core-engine")
79
- .replace("../../preprocessor/run/world", "../../../../../preprocessor/run/world");
79
+ .replace("../../preprocessor/run/world", "../../../../../preprocessor/run/world")
80
+ .replace("./_.common", "../../../_.common");
80
81
  wordingsJson.enriched.forEach((conf) => {
81
82
  // console.debug(">> conf", conf)
82
83
  // console.debug("${" + conf.key + "}");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/runner-commons",
3
- "version": "2.15.0",
3
+ "version": "2.16.1",
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 common lib for uuv",
@@ -33,7 +33,7 @@
33
33
  "package": "npm pack --pack-destination=\"../../dist/packages\"",
34
34
  "lint": "npx eslint . --ext .js,.ts,.feature --fix",
35
35
  "test": "npm run unit-test --",
36
- "unit-test": "jest --coverage"
36
+ "unit-tests": "jest --coverage"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@typescript-eslint/eslint-plugin": "5.62.0",
@@ -18,6 +18,18 @@
18
18
  "wording": "I should see $indefiniteArticle $roleName named {string} keyboard focused",
19
19
  "section": "keyboard"
20
20
  },
21
+ {
22
+ "key": "key.then.element.nextWithRoleAndNameFocused",
23
+ "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",
24
+ "wording": "the next keyboard element focused should be $indefiniteArticle $roleName named {string}",
25
+ "section": "keyboard"
26
+ },
27
+ {
28
+ "key": "key.then.element.previousWithRoleAndNameFocused",
29
+ "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",
30
+ "wording": "the previous keyboard element focused should be $indefiniteArticle $roleName named {string}",
31
+ "section": "keyboard"
32
+ },
21
33
  {
22
34
  "key": "key.then.element.not.withRoleAndName",
23
35
  "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/)",
@@ -159,6 +159,11 @@
159
159
  "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",
160
160
  "wording": "I should see an element with role {string} and name {string} and content {string}"
161
161
  },
162
+ {
163
+ "key": "key.then.element.withSelectorFocused",
164
+ "description": "Checks that the Html element with the specified selector is focused",
165
+ "wording": "the element with selector {string} should be keyboard focused"
166
+ },
162
167
  {
163
168
  "key": "key.then.element.withRoleAndNameFocused",
164
169
  "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",
@@ -199,6 +204,18 @@
199
204
  "description": "Checks that an Html element does not exists with the specified aria-label attribute",
200
205
  "wording": "I should not see an element with aria-label {string}"
201
206
  },
207
+ {
208
+ "key": "key.then.element.nextWithRoleAndNameFocused",
209
+ "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",
210
+ "wording": "the next keyboard element focused should have name {string} and role {string}",
211
+ "section": "keyboard"
212
+ },
213
+ {
214
+ "key": "key.then.element.previousWithRoleAndNameFocused",
215
+ "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",
216
+ "wording": "the previous keyboard element focused should have name {string} and role {string}",
217
+ "section": "keyboard"
218
+ },
202
219
  {
203
220
  "key": "key.then.wait.mock",
204
221
  "description": "Wait that a named mock has been consumed until timeout",
@@ -14,10 +14,22 @@
14
14
  },
15
15
  {
16
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/) est focus",
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",
18
18
  "wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} avoir le focus clavier",
19
19
  "section": "keyboard"
20
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",
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",
30
+ "wording": "le précédent élément avec le focus clavier doit être $indefiniteArticle $roleName $namedAdjective {string}",
31
+ "section": "keyboard"
32
+ },
21
33
  {
22
34
  "key": "key.then.element.not.withRoleAndName",
23
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",
@@ -159,6 +159,11 @@
159
159
  "description": "Vérifie qu'un élément Html existe avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types), le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) et le contenu spécifiés",
160
160
  "wording": "je dois voir un élément avec le rôle {string} et le nom {string} et pour contenu {string}"
161
161
  },
162
+ {
163
+ "key": "key.then.element.withSelectorFocused",
164
+ "description": "Vérifie que l'élément Html avec le sélecteur est focus",
165
+ "wording": "l'élément avec le sélecteur {string} doit avoir le focus clavier"
166
+ },
162
167
  {
163
168
  "key": "key.then.element.withRoleAndNameFocused",
164
169
  "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/) est focus",
@@ -199,6 +204,18 @@
199
204
  "description": "Vérifie qu'un élément Html n'existe pas avec l'attribut aria-label spécifié",
200
205
  "wording": "je ne dois pas voir un élément ayant pour aria-label {string}"
201
206
  },
207
+ {
208
+ "key": "key.then.element.nextWithRoleAndNameFocused",
209
+ "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",
210
+ "wording": "le prochain élément avec le focus clavier doit avoir le role {string} et le nom {string}",
211
+ "section": "keyboard"
212
+ },
213
+ {
214
+ "key": "key.then.element.previousWithRoleAndNameFocused",
215
+ "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",
216
+ "wording": "le précédent élément avec le focus clavier doit avoir le role {string} et le nom {string}",
217
+ "section": "keyboard"
218
+ },
202
219
  {
203
220
  "key": "key.then.wait.mock",
204
221
  "description": "Vérifie qu'un bouchon nommé ait bien été consommé",