@uuv/runner-commons 2.54.0 → 2.55.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 CHANGED
@@ -1,3 +1,13 @@
1
+ # [2.55.0](https://github.com/e2e-test-quest/uuv/compare/runner-commons-v2.54.0...runner-commons-v2.55.0) (2025-07-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * add disabled and enabled sentence without content verification, [#1040](https://github.com/e2e-test-quest/uuv/issues/1040) ([feee934](https://github.com/e2e-test-quest/uuv/commit/feee934ea058e1e06fcad821d8377b1a46d6c4a3))
7
+ * add sentence to check heading with specific level, [#1037](https://github.com/e2e-test-quest/uuv/issues/1037) ([3921ab0](https://github.com/e2e-test-quest/uuv/commit/3921ab0973ac706075d61241e1ac5df60497b934))
8
+ * add short sentence for role option, listitem and combobox ([ae75a07](https://github.com/e2e-test-quest/uuv/commit/ae75a07a061bbc179762b09f65d4af64ac042ef2))
9
+ * replace picture sentence by image, [#1042](https://github.com/e2e-test-quest/uuv/issues/1042) ([be897f2](https://github.com/e2e-test-quest/uuv/commit/be897f28e483c1e0476ef217f9ee110b061dfb22))
10
+
1
11
  # [2.54.0](https://github.com/e2e-test-quest/uuv/compare/runner-commons-v2.53.0...runner-commons-v2.54.0) (2025-07-03)
2
12
 
3
13
 
@@ -54,6 +54,18 @@
54
54
  "wording": "I should see $indefiniteArticle $roleName named {string} and containing {string} enabled",
55
55
  "section": "contains"
56
56
  },
57
+ {
58
+ "key": "key.then.element.withRoleAndNameDisabled",
59
+ "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 with the disabled attribute set to true",
60
+ "wording": "I should see $indefiniteArticle $roleName named {string} disabled",
61
+ "section": "contains"
62
+ },
63
+ {
64
+ "key": "key.then.element.withRoleAndNameEnabled",
65
+ "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 with the disabled attribute set to false",
66
+ "wording": "I should see $indefiniteArticle $roleName named {string} enabled",
67
+ "section": "contains"
68
+ },
57
69
  {
58
70
  "key": "key.when.type",
59
71
  "description": "Writes the sentence given as a parameter inside the specified field (useful for example to fill in a form field)",
@@ -59,7 +59,7 @@ exports.EN_ROLES = [
59
59
  { id: "cell", name: "cell" },
60
60
  { id: "checkbox", name: "checkbox", shouldGenerateKeyboardSentence: true, shouldGenerateCheckedSentence: true, shouldGenerateClickSentence: true },
61
61
  { id: "columnheader", name: "column header" },
62
- { id: "combobox", name: "combo box", shouldGenerateKeyboardSentence: true },
62
+ { id: "combobox", name: "combo box", shouldGenerateKeyboardSentence: true, shouldGenerateClickSentence: true },
63
63
  { id: "command", name: "command" },
64
64
  { id: "comment", name: "comment" },
65
65
  { id: "complementary", name: "complementary" },
@@ -77,12 +77,12 @@ exports.EN_ROLES = [
77
77
  { id: "gridcell", name: "grid cell" },
78
78
  { id: "group", name: "group" },
79
79
  { id: "heading", name: "title" },
80
- { id: "img", name: "picture" },
80
+ { id: "img", name: "image", indefiniteArticle: INDEFINITE_ARTICLE.AN },
81
81
  { id: "landmark", name: "landmark" },
82
82
  { id: "link", name: "link", shouldGenerateKeyboardSentence: true, shouldGenerateClickSentence: true },
83
83
  { id: "list", name: "list", shouldGenerateContainsSentence: false, shouldGenerateTypeSentence: false },
84
84
  { id: "listbox", name: "list box", shouldGenerateKeyboardSentence: true },
85
- { id: "listitem", name: "list item" },
85
+ { id: "listitem", name: "list item", shouldGenerateKeyboardSentence: true, shouldGenerateClickSentence: true },
86
86
  { id: "log", name: "log" },
87
87
  { id: "main", name: "main" },
88
88
  { id: "mark", name: "mark" },
@@ -96,7 +96,7 @@ exports.EN_ROLES = [
96
96
  { id: "navigation", name: "navigation" },
97
97
  { id: "none", name: "no" },
98
98
  { id: "note", name: "note" },
99
- { id: "option", name: "option", indefiniteArticle: INDEFINITE_ARTICLE.AN },
99
+ { id: "option", name: "option", indefiniteArticle: INDEFINITE_ARTICLE.AN, shouldGenerateKeyboardSentence: true, shouldGenerateClickSentence: true },
100
100
  { id: "presentation", name: "presentation" },
101
101
  { id: "progressbar", name: "progress bar" },
102
102
  { id: "radio", name: "radio", shouldGenerateKeyboardSentence: true, shouldGenerateCheckedSentence: true, shouldGenerateClickSentence: true },
@@ -119,6 +119,11 @@
119
119
  "description": "Checks the current html page have the specified title",
120
120
  "wording": "I should see the page title {string}"
121
121
  },
122
+ {
123
+ "key": "key.then.title.withNameAndLevel",
124
+ "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",
125
+ "wording": "I should see a title named {string} with level {int}"
126
+ },
122
127
  {
123
128
  "key": "key.then.attributes.withValues",
124
129
  "description": "Checks Html attributes of the selected element",
@@ -152,7 +157,7 @@
152
157
  {
153
158
  "key": "key.then.element.withRoleAndNameAndContentEnabled",
154
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, and with the disabled attribute set to false",
155
- "wording": "I should see an element with role {string} and name {string} and content {string} not disabled"
160
+ "wording": "I should see an element with role {string} and name {string} and content {string} enabled"
156
161
  },
157
162
  {
158
163
  "key": "key.then.element.withRoleAndNameAndContent",
@@ -123,7 +123,8 @@ exports.FR_ROLES = [
123
123
  name: "boîte à choix",
124
124
  definiteArticle: FR_DEFINITE_ARTICLE.LA,
125
125
  indefiniteArticle: FR_INDEFINITE_ARTICLE.UNE,
126
- shouldGenerateKeyboardSentence: true
126
+ shouldGenerateKeyboardSentence: true,
127
+ shouldGenerateClickSentence: true
127
128
  },
128
129
  {
129
130
  id: "command",
@@ -266,7 +267,9 @@ exports.FR_ROLES = [
266
267
  id: "listitem",
267
268
  name: "élément de liste",
268
269
  definiteArticle: FR_DEFINITE_ARTICLE.L,
269
- indefiniteArticle: FR_INDEFINITE_ARTICLE.UN
270
+ indefiniteArticle: FR_INDEFINITE_ARTICLE.UN,
271
+ shouldGenerateKeyboardSentence: true,
272
+ shouldGenerateClickSentence: true
270
273
  },
271
274
  {
272
275
  id: "log",
@@ -354,7 +357,9 @@ exports.FR_ROLES = [
354
357
  id: "option",
355
358
  name: "option",
356
359
  definiteArticle: FR_DEFINITE_ARTICLE.L,
357
- indefiniteArticle: FR_INDEFINITE_ARTICLE.UNE
360
+ indefiniteArticle: FR_INDEFINITE_ARTICLE.UNE,
361
+ shouldGenerateKeyboardSentence: true,
362
+ shouldGenerateClickSentence: true
358
363
  },
359
364
  {
360
365
  id: "presentation",
@@ -61,6 +61,8 @@
61
61
  "previousWithRoleAndNameFocused": "",
62
62
  "withRoleAndNameAndContentDisabled": "",
63
63
  "withRoleAndNameAndContentEnabled": "",
64
+ "withRoleAndNameDisabled": "",
65
+ "withRoleAndNameEnabled": "",
64
66
  "withAriaLabel": "",
65
67
  "withAriaLabelAndContent": "",
66
68
  "withSelector": "",
@@ -90,6 +92,9 @@
90
92
  "table": {
91
93
  "withNameAndContent": ""
92
94
  },
95
+ "title": {
96
+ "withNameAndLevel": ""
97
+ },
93
98
  "attributes": {
94
99
  "withValues": ""
95
100
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/runner-commons",
3
- "version": "2.54.0",
3
+ "version": "2.55.0",
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",
@@ -54,6 +54,18 @@
54
54
  "wording": "I should see $indefiniteArticle $roleName named {string} and containing {string} enabled",
55
55
  "section": "contains"
56
56
  },
57
+ {
58
+ "key": "key.then.element.withRoleAndNameDisabled",
59
+ "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 with the disabled attribute set to true",
60
+ "wording": "I should see $indefiniteArticle $roleName named {string} disabled",
61
+ "section": "contains"
62
+ },
63
+ {
64
+ "key": "key.then.element.withRoleAndNameEnabled",
65
+ "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 with the disabled attribute set to false",
66
+ "wording": "I should see $indefiniteArticle $roleName named {string} enabled",
67
+ "section": "contains"
68
+ },
57
69
  {
58
70
  "key": "key.when.type",
59
71
  "description": "Writes the sentence given as a parameter inside the specified field (useful for example to fill in a form field)",
@@ -119,6 +119,11 @@
119
119
  "description": "Checks the current html page have the specified title",
120
120
  "wording": "I should see the page title {string}"
121
121
  },
122
+ {
123
+ "key": "key.then.title.withNameAndLevel",
124
+ "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",
125
+ "wording": "I should see a title named {string} with level {int}"
126
+ },
122
127
  {
123
128
  "key": "key.then.attributes.withValues",
124
129
  "description": "Checks Html attributes of the selected element",
@@ -152,7 +157,7 @@
152
157
  {
153
158
  "key": "key.then.element.withRoleAndNameAndContentEnabled",
154
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, and with the disabled attribute set to false",
155
- "wording": "I should see an element with role {string} and name {string} and content {string} not disabled"
160
+ "wording": "I should see an element with role {string} and name {string} and content {string} enabled"
156
161
  },
157
162
  {
158
163
  "key": "key.then.element.withRoleAndNameAndContent",
@@ -45,13 +45,25 @@
45
45
  {
46
46
  "key": "key.then.element.withRoleAndNameAndContentDisabled",
47
47
  "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",
48
- "wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} et contenant {string} inactif",
48
+ "wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} et contenant {string} désactivé",
49
49
  "section": "contains"
50
50
  },
51
51
  {
52
52
  "key": "key.then.element.withRoleAndNameAndContentEnabled",
53
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 à true",
54
- "wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} et contenant {string} actif",
54
+ "wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} et contenant {string} activé",
55
+ "section": "contains"
56
+ },
57
+ {
58
+ "key": "key.then.element.withRoleAndNameDisabled",
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/) et avec l'attribut disabled à false",
60
+ "wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} désactivé",
61
+ "section": "contains"
62
+ },
63
+ {
64
+ "key": "key.then.element.withRoleAndNameEnabled",
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 à true",
66
+ "wording": "je dois voir $indefiniteArticle $roleName $namedAdjective {string} activé",
55
67
  "section": "contains"
56
68
  },
57
69
  {
@@ -119,6 +119,11 @@
119
119
  "description": "Vérifie que la page courante a le bon titre",
120
120
  "wording": "je dois voir le titre de page {string}"
121
121
  },
122
+ {
123
+ "key": "key.then.title.withNameAndLevel",
124
+ "description": "Vérifie l'existence d'un élément Html ayant le rôle `heading`, le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) et le niveau spécifiés",
125
+ "wording": "je dois voir un titre nommé {string} avec le niveau {int}"
126
+ },
122
127
  {
123
128
  "key": "key.then.attributes.withValues",
124
129
  "description": "Vérifie des attributs Html de l'élément sélectionné",
@@ -147,12 +152,12 @@
147
152
  {
148
153
  "key": "key.then.element.withRoleAndNameAndContentDisabled",
149
154
  "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, et avec l'attribut disabled à true",
150
- "wording": "je dois voir un élément avec le rôle {string} et le nom {string} et pour contenu {string} inactif"
155
+ "wording": "je dois voir un élément avec le rôle {string} et le nom {string} et pour contenu {string} désactivé"
151
156
  },
152
157
  {
153
158
  "key": "key.then.element.withRoleAndNameAndContentEnabled",
154
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 et avec l'attribut disabled à false",
155
- "wording": "je dois voir un élément avec le rôle {string} et le nom {string} et pour contenu {string} actif"
160
+ "wording": "je dois voir un élément avec le rôle {string} et le nom {string} et pour contenu {string} activé"
156
161
  },
157
162
  {
158
163
  "key": "key.then.element.withRoleAndNameAndContent",