@uuv/runner-commons 1.10.6 → 1.12.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/assets/i18n/web/en/en-enriched-wordings.json +39 -0
  3. package/dist/assets/i18n/web/en/en-roles.d.ts +2 -0
  4. package/dist/assets/i18n/web/en/en-roles.js +130 -0
  5. package/dist/assets/i18n/web/en/en.json +222 -0
  6. package/dist/assets/i18n/web/en/index.d.ts +3 -0
  7. package/dist/assets/i18n/web/en/index.js +12 -0
  8. package/dist/assets/i18n/web/fr/fr-roles.d.ts +2 -0
  9. package/dist/assets/i18n/web/fr/fr-roles.js +560 -0
  10. package/dist/assets/i18n/web/index.d.ts +2 -0
  11. package/dist/assets/i18n/web/index.js +8 -0
  12. package/dist/index.d.ts +3 -1
  13. package/dist/index.js +5 -2
  14. package/dist/step-definition-generator/accessible-role.d.ts +8 -0
  15. package/dist/step-definition-generator/accessible-role.js +8 -0
  16. package/dist/step-definition-generator/common.d.ts +8 -5
  17. package/dist/step-definition-generator/common.js +44 -4
  18. package/dist/step-definition-generator/generate-base-step-definitions.d.ts +2 -3
  19. package/dist/step-definition-generator/generate-base-step-definitions.js +33 -15
  20. package/dist/step-definition-generator/generate-based-role-step-definitions.d.ts +3 -4
  21. package/dist/step-definition-generator/generate-based-role-step-definitions.js +41 -18
  22. package/dist/step-definition-generator/generate-step-definitions-documentation.js +4 -4
  23. package/dist/step-definition-generator/generate-step-definitions.d.ts +2 -1
  24. package/dist/step-definition-generator/generate-step-definitions.js +13 -6
  25. package/package.json +13 -2
  26. package/src/assets/i18n/web/en/en-enriched-wordings.json +40 -0
  27. package/src/assets/i18n/web/en/en.json +222 -0
  28. package/src/assets/i18n/web/fr/fr-enriched-wordings.json +39 -0
  29. package/src/assets/i18n/web/fr/fr.json +222 -0
  30. /package/dist/assets/i18n/{template.json → web/template.json} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ # [1.12.0](https://github.com/Orange-OpenSource/uuv/compare/runner-commons-v1.11.0...runner-commons-v1.12.0) (2023-12-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * correct abusive capitalization for within, [#254](https://github.com/Orange-OpenSource/uuv/issues/254) ([9c44a95](https://github.com/Orange-OpenSource/uuv/commit/9c44a9528d36cd3a6828f6b2ba8c8e3dcaf7b7e8))
7
+ * **deps:** update dependency primereact to v9.6.4 ([6bc5ac8](https://github.com/Orange-OpenSource/uuv/commit/6bc5ac8c33488d49c13bd30330e1cc3dd1c0ec73))
8
+ * **deps:** update dependency ts-node to v10.9.2 ([0cac560](https://github.com/Orange-OpenSource/uuv/commit/0cac560a0233815c2c07c7e2cd1e43ff7b197052))
9
+ * **deps:** update dependency tslib to v2.6.2 ([f43d897](https://github.com/Orange-OpenSource/uuv/commit/f43d8972746b85a386320ad67b80d9c7aa7bc313))
10
+
11
+
12
+ ### Features
13
+
14
+ * allow only correct indefinite article from role based sentence, [#361](https://github.com/Orange-OpenSource/uuv/issues/361) ([eed67a0](https://github.com/Orange-OpenSource/uuv/commit/eed67a04295a2a7ba473ad0bcac8a5ee676bfbac))
15
+ * fix pr review, [#361](https://github.com/Orange-OpenSource/uuv/issues/361) ([4bb4d4c](https://github.com/Orange-OpenSource/uuv/commit/4bb4d4c4d77a9ca6bb5cadcf5c902c36c11ccd10))
16
+
17
+ # [1.11.0](https://github.com/Orange-OpenSource/uuv/compare/runner-commons-v1.10.6...runner-commons-v1.11.0) (2023-12-03)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * correct description of sentence, [#368](https://github.com/Orange-OpenSource/uuv/issues/368) ([3caf2f6](https://github.com/Orange-OpenSource/uuv/commit/3caf2f685aba3ada741716fd7c703e44307f5d08))
23
+ * **deps:** update dependency @cucumber/cucumber to v9.6.0 ([d0ac7ca](https://github.com/Orange-OpenSource/uuv/commit/d0ac7ca26b3d9d1fddd17d7cb6c7034ff640e483))
24
+ * **deps:** update dependency cypress-real-events to v1.11.0 ([1694807](https://github.com/Orange-OpenSource/uuv/commit/169480777dc4c87f14a2deb5c10beb9cb0e43238))
25
+
26
+
27
+ ### Features
28
+
29
+ * add contraction for typing sentence, [#368](https://github.com/Orange-OpenSource/uuv/issues/368) ([a8189ed](https://github.com/Orange-OpenSource/uuv/commit/a8189edbca7f46429ce16136e4b090e4b598935c))
30
+
1
31
  ## [1.10.6](https://github.com/Orange-OpenSource/uuv/compare/runner-commons-v1.10.5...runner-commons-v1.10.6) (2023-12-02)
2
32
 
3
33
 
@@ -0,0 +1,39 @@
1
+ {
2
+ "enriched": [
3
+ {
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",
6
+ "wording": "within $indefiniteArticle $roleName named {string}"
7
+ },
8
+ {
9
+ "key": "key.then.element.withRoleAndName",
10
+ "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/)",
11
+ "wording": "I should see $indefiniteArticle $roleName named {string}"
12
+ },
13
+ {
14
+ "key": "key.then.element.not.withRoleAndName",
15
+ "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/)",
16
+ "wording": "I should not see $indefiniteArticle $roleName named {string}"
17
+ },
18
+ {
19
+ "key": "key.then.element.withRoleAndNameAndContent",
20
+ "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",
21
+ "wording": "I should see $indefiniteArticle $roleName named {string} and containing {string}"
22
+ },
23
+ {
24
+ "key": "key.then.element.withRoleAndNameAndContentDisabled",
25
+ "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",
26
+ "wording": "I should see $indefiniteArticle $roleName named {string} and containing {string} disabled"
27
+ },
28
+ {
29
+ "key": "key.then.element.withRoleAndNameAndContentEnabled",
30
+ "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",
31
+ "wording": "I should see $indefiniteArticle $roleName named {string} and containing {string} enabled"
32
+ },
33
+ {
34
+ "key": "key.when.type",
35
+ "description": "Writes the sentence given as a parameter inside the specified field (useful for example to fill in a form field)",
36
+ "wording": "I type the sentence {string} in $definiteArticle $roleName named {string}"
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,2 @@
1
+ import { AccessibleRole } from "../../../../step-definition-generator/accessible-role";
2
+ export declare const EN_ROLES: AccessibleRole[];
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EN_ROLES = void 0;
4
+ const accessible_role_1 = require("../../../../step-definition-generator/accessible-role");
5
+ var DEFINITE_ARTICLE;
6
+ (function (DEFINITE_ARTICLE) {
7
+ DEFINITE_ARTICLE["THE"] = "the";
8
+ })(DEFINITE_ARTICLE || (DEFINITE_ARTICLE = {}));
9
+ var INDEFINITE_ARTICLE;
10
+ (function (INDEFINITE_ARTICLE) {
11
+ INDEFINITE_ARTICLE["A"] = "a";
12
+ INDEFINITE_ARTICLE["AN"] = "an";
13
+ })(INDEFINITE_ARTICLE || (INDEFINITE_ARTICLE = {}));
14
+ class EnAccessibleRole extends accessible_role_1.AccessibleRole {
15
+ definiteArticle = DEFINITE_ARTICLE.THE;
16
+ indefiniteArticle = INDEFINITE_ARTICLE.A;
17
+ constructor(id, name, definiteArticle, indefiniteArticle) {
18
+ super();
19
+ this.id = id;
20
+ this.name = name;
21
+ if (definiteArticle) {
22
+ this.definiteArticle = definiteArticle;
23
+ }
24
+ if (indefiniteArticle) {
25
+ this.indefiniteArticle = indefiniteArticle;
26
+ }
27
+ }
28
+ static from(input) {
29
+ return new EnAccessibleRole(input.id, input.name, input.definiteArticle, input.indefiniteArticle);
30
+ }
31
+ getDefiniteArticle() {
32
+ return this.definiteArticle.toString();
33
+ }
34
+ getIndefiniteArticle() {
35
+ return this.indefiniteArticle.toString();
36
+ }
37
+ getOfDefiniteArticle() {
38
+ return `of ${this.definiteArticle}`;
39
+ }
40
+ namedAdjective() {
41
+ return "named";
42
+ }
43
+ }
44
+ exports.EN_ROLES = [
45
+ { id: "alert", name: "alert", indefiniteArticle: INDEFINITE_ARTICLE.AN },
46
+ { id: "alertdialog", name: "alert dialog", indefiniteArticle: INDEFINITE_ARTICLE.AN },
47
+ { id: "application", name: "application", indefiniteArticle: INDEFINITE_ARTICLE.AN },
48
+ { id: "article", name: "article", indefiniteArticle: INDEFINITE_ARTICLE.AN },
49
+ { id: "banner", name: "banner" },
50
+ { id: "button", name: "button" },
51
+ { id: "cell", name: "cell" },
52
+ { id: "checkbox", name: "checkbox" },
53
+ { id: "columnheader", name: "column header" },
54
+ { id: "combobox", name: "combo box" },
55
+ { id: "command", name: "command" },
56
+ { id: "comment", name: "comment" },
57
+ { id: "complementary", name: "complementary" },
58
+ { id: "composite", name: "composite" },
59
+ { id: "contentinfo", name: "contentinfo" },
60
+ { id: "definition", name: "definition" },
61
+ { id: "dialog", name: "dialog" },
62
+ { id: "directory", name: "directory" },
63
+ { id: "document", name: "document" },
64
+ { id: "feed", name: "flow" },
65
+ { id: "figure", name: "figure" },
66
+ { id: "form", name: "form" },
67
+ { id: "generic", name: "generic" },
68
+ { id: "grid", name: "grid" },
69
+ { id: "gridcell", name: "grid cell" },
70
+ { id: "group", name: "group" },
71
+ { id: "heading", name: "title" },
72
+ { id: "img", name: "picture" },
73
+ { id: "input", name: "entry", indefiniteArticle: INDEFINITE_ARTICLE.AN },
74
+ { id: "landmark", name: "landmark" },
75
+ { id: "link", name: "link" },
76
+ { id: "list", name: "list" },
77
+ { id: "listbox", name: "list box" },
78
+ { id: "listitem", name: "list item" },
79
+ { id: "log", name: "log" },
80
+ { id: "main", name: "main" },
81
+ { id: "mark", name: "mark" },
82
+ { id: "math", name: "math" },
83
+ { id: "menu", name: "menu" },
84
+ { id: "menubar", name: "menubar" },
85
+ { id: "menuitem", name: "menuitem" },
86
+ { id: "menuitemcheckbox", name: "menuitemcheckbox" },
87
+ { id: "menuitemradio", name: "menuitemradio" },
88
+ { id: "meter", name: "counter" },
89
+ { id: "navigation", name: "navigation" },
90
+ { id: "none", name: "no" },
91
+ { id: "note", name: "note" },
92
+ { id: "option", name: "option", indefiniteArticle: INDEFINITE_ARTICLE.AN },
93
+ { id: "presentation", name: "presentation" },
94
+ { id: "progressbar", name: "progress bar" },
95
+ { id: "radio", name: "radio" },
96
+ { id: "radiogroup", name: "radio group" },
97
+ { id: "range", name: "range" },
98
+ { id: "region", name: "region" },
99
+ { id: "roletype", name: "role type" },
100
+ { id: "row", name: "row" },
101
+ { id: "rowgroup", name: "row group" },
102
+ { id: "rowheader", name: "row header" },
103
+ { id: "scrollbar", name: "scroll bar" },
104
+ { id: "search", name: "search" },
105
+ { id: "searchbox", name: "search box" },
106
+ { id: "section", name: "section" },
107
+ { id: "sectionhead", name: "section header" },
108
+ { id: "select", name: "select" },
109
+ { id: "separator", name: "separator" },
110
+ { id: "slider", name: "slider" },
111
+ { id: "spinbutton", name: "spin button" },
112
+ { id: "status", name: "status" },
113
+ { id: "structure", name: "structure" },
114
+ { id: "suggestion", name: "suggestion" },
115
+ { id: "switch", name: "switch" },
116
+ { id: "tab", name: "tab" },
117
+ { id: "table", name: "table" },
118
+ { id: "tablist", name: "tablist" },
119
+ { id: "tabpanel", name: "tabpanel" },
120
+ { id: "term", name: "term" },
121
+ { id: "textbox", name: "text box" },
122
+ { id: "timer", name: "timer" },
123
+ { id: "toolbar", name: "toolbar" },
124
+ { id: "tooltip", name: "tooltip" },
125
+ { id: "tree", name: "tree" },
126
+ { id: "treegrid", name: "tree grid" },
127
+ { id: "treeitem", name: "tree item" },
128
+ { id: "widget", name: "widget" },
129
+ { id: "window", name: "window" }
130
+ ].map(role => EnAccessibleRole.from(role));
@@ -0,0 +1,222 @@
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.button",
9
+ "description": "Triggers a click on the given button with specific name",
10
+ "wording": "I click on button named {string}"
11
+ },
12
+ {
13
+ "key": "key.when.click.link",
14
+ "description": "Triggers a click on the given link with specific name",
15
+ "wording": "I click on link named {string}"
16
+ },
17
+ {
18
+ "key": "key.when.click.withRole",
19
+ "description": "Triggers a click on the element with given role and specific name",
20
+ "wording": "I click on element with role {string} and name {string}"
21
+ },
22
+ {
23
+ "key": "key.when.headers.forUriAndMethod",
24
+ "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>",
25
+ "wording": "I set header(s) for uri {string} and method {string}"
26
+ },
27
+ {
28
+ "key": "key.when.headers.forUri",
29
+ "description": "Sets one or more headers to the indicated http request",
30
+ "wording": "I set header(s) for uri {string}"
31
+ },
32
+ {
33
+ "key": "key.when.resetContext",
34
+ "description": "Deletes selected element and timeout",
35
+ "wording": "I reset context"
36
+ },
37
+ {
38
+ "key": "key.when.timeout",
39
+ "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",
40
+ "wording": "I set timeout with value {int}"
41
+ },
42
+ {
43
+ "key": "key.when.type",
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 type the sentence {string}"
46
+ },
47
+ {
48
+ "key": "key.when.keyboard.press",
49
+ "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.",
50
+ "wording": "I press {string}"
51
+ },
52
+ {
53
+ "key": "key.when.keyboard.multiplePress",
54
+ "description": "Press specified key multiple times using | as: num|{key}",
55
+ "wording": "I press {int} times on {string}"
56
+ },
57
+ {
58
+ "key": "key.when.visit",
59
+ "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://",
60
+ "wording": "I visit path {string}"
61
+ },
62
+ {
63
+ "key": "key.when.withinElement.ariaLabel",
64
+ "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",
65
+ "wording": "within the element with aria-label {string}"
66
+ },
67
+ {
68
+ "key": "key.when.withinElement.selector",
69
+ "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",
70
+ "wording": "within the element with selector {string}"
71
+ },
72
+ {
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",
75
+ "wording": "within the element with role {string} and name {string}"
76
+ },
77
+ {
78
+ "key": "key.when.withinElement.testId",
79
+ "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",
80
+ "wording": "within the element with testId {string}"
81
+ },
82
+ {
83
+ "key": "key.when.mock.withBody",
84
+ "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>",
85
+ "wording": "I mock a request {} on url {string} named {string} with content {}"
86
+ },
87
+ {
88
+ "key": "key.when.mock.withFixture",
89
+ "description": "Mock a named API response with file's extension .json, .js, .coffee, .html, .txt, .csv, .png, .jpg, .jpeg, .gif, .tif, .tiff, .zip",
90
+ "wording": "I mock a request {} on url {string} named {string} with fixture {}"
91
+ },
92
+ {
93
+ "key": "key.when.mock.withStatusCode",
94
+ "description": "Mock a named API response with status code",
95
+ "wording": "I mock a request {} on url {string} named {string} with status code {int}"
96
+ },
97
+ {
98
+ "key": "key.given.viewport.preset",
99
+ "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)",
100
+ "wording": "I set viewport to preset {string}"
101
+ },
102
+ {
103
+ "key": "key.given.viewport.withWidthAndHeight",
104
+ "description": "Sets the viewport dimensions to the specified width and length",
105
+ "wording": "I set viewport with width {int} and height {int}"
106
+ },
107
+ {
108
+ "key": "key.then.attributes.withValues",
109
+ "description": "Checks Html attributes of the selected element",
110
+ "wording": "I should see these attributes with values"
111
+ },
112
+ {
113
+ "key": "key.then.element.withAriaLabelAndContent",
114
+ "description": "Checks that an Html element exists with the specified aria-label attribute and content",
115
+ "wording": "I should see an element with aria-label {string} and content {string}"
116
+ },
117
+ {
118
+ "key": "key.then.element.withAriaLabel",
119
+ "description": "Checks that an Html element exists with the specified aria-label attribute",
120
+ "wording": "I should see an element with aria-label {string}"
121
+ },
122
+ {
123
+ "key": "key.then.element.withContent",
124
+ "description": "Checks that an Html element exists with the specified content",
125
+ "wording": "I should see an element with content {string}"
126
+ },
127
+ {
128
+ "key": "key.then.element.withSelector",
129
+ "description": "Checks that an Html element exists with the specified selector",
130
+ "wording": "I should see an element with selector {string}"
131
+ },
132
+ {
133
+ "key": "key.then.element.withRoleAndNameAndContentDisabled",
134
+ "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",
135
+ "wording": "I should see an element with role {string} and name {string} and content {string} disabled"
136
+ },
137
+ {
138
+ "key": "key.then.element.withRoleAndNameAndContentEnabled",
139
+ "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",
140
+ "wording": "I should see an element with role {string} and name {string} and content {string} not disabled"
141
+ },
142
+ {
143
+ "key": "key.then.element.withRoleAndNameAndContent",
144
+ "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",
145
+ "wording": "I should see an element with role {string} and name {string} and content {string}"
146
+ },
147
+ {
148
+ "key": "key.then.element.withRoleAndName",
149
+ "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/)",
150
+ "wording": "I should see an element with role {string} and name {string}"
151
+ },
152
+ {
153
+ "key": "key.then.element.withTestId",
154
+ "description": "Checks that an Html element exists with the specified data-testid attribute",
155
+ "wording": "I should see an element with testId {string}"
156
+ },
157
+ {
158
+ "key": "key.then.list.withNameAndContent",
159
+ "description": "Checks that there is a list with the specified [name](https://russmaxdesign.github.io/html-elements-names/) and content.<br/> See this <a href='https://github.com/Orange-OpenSource/uuv/blob/9e3c9914420c6d527f7ad8b0017a0f8e26250f86/example/weather-app.feature#L17'>example</a>",
160
+ "wording": "I should see elements of the list with name {string}"
161
+ },
162
+ {
163
+ "key": "key.then.element.not.withContent",
164
+ "description": "Checks that an Html element does not exists with the specified content",
165
+ "wording": "I should not see an element with content {string}"
166
+ },
167
+ {
168
+ "key": "key.then.element.not.withTestId",
169
+ "description": "Checks that an Html element does not exists with the specified data-testid attribute",
170
+ "wording": "I should not see an element with testId {string}"
171
+ },
172
+ {
173
+ "key": "key.then.element.not.withRoleAndName",
174
+ "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/)",
175
+ "wording": "I should not see an element with role {string} and name {string}"
176
+ },
177
+ {
178
+ "key": "key.then.element.not.withAriaLabel",
179
+ "description": "Checks that an Html element does not exists with the specified aria-label attribute",
180
+ "wording": "I should not see an element with aria-label {string}"
181
+ },
182
+ {
183
+ "key": "key.then.wait.mock",
184
+ "description": "Wait that a named mock has been consumed until timeout",
185
+ "wording": "I should consume a mock named {string}"
186
+ },
187
+ {
188
+ "key": "key.then.wait.milliSeconds",
189
+ "description": "Wait milliseconds. <b>Warning:</b> use this sentence <b>in production</b> can make your <b>test flaky</b>.",
190
+ "wording": "I wait {int} ms"
191
+ },
192
+ {
193
+ "key": "key.then.a11y.check.default",
194
+ "description": "Check that the current page have no [accessibility issue](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md)",
195
+ "wording": "I should not have any accessibility issue"
196
+ },
197
+ {
198
+ "key": "key.then.a11y.check.withFixtureContextAndFixtureOption",
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 {}"
201
+ },
202
+ {
203
+ "key": "key.then.a11y.check.withFixtureOption",
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 {}"
206
+ },
207
+ {
208
+ "key": "key.then.a11y.check.onlyCritical",
209
+ "description": "Check that the current page have not critical accessibility issue",
210
+ "wording": "I should not have any critical accessibility issue"
211
+ },
212
+ {
213
+ "key": "key.then.a11y.check.withImpacts",
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)"
216
+ },
217
+ {
218
+ "key": "key.then.a11y.check.withTags",
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) {}"
221
+ }
222
+ ]
@@ -0,0 +1,3 @@
1
+ export { EN_ROLES } from "./en-roles";
2
+ export { default as enSentences } from "./en.json";
3
+ export { default as enBasedRoleSentences } from "./en-enriched-wordings.json";
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.enBasedRoleSentences = exports.enSentences = exports.EN_ROLES = void 0;
7
+ var en_roles_1 = require("./en-roles");
8
+ Object.defineProperty(exports, "EN_ROLES", { enumerable: true, get: function () { return en_roles_1.EN_ROLES; } });
9
+ var en_json_1 = require("./en.json");
10
+ Object.defineProperty(exports, "enSentences", { enumerable: true, get: function () { return __importDefault(en_json_1).default; } });
11
+ var en_enriched_wordings_json_1 = require("./en-enriched-wordings.json");
12
+ Object.defineProperty(exports, "enBasedRoleSentences", { enumerable: true, get: function () { return __importDefault(en_enriched_wordings_json_1).default; } });
@@ -0,0 +1,2 @@
1
+ import { AccessibleRole } from "../../../../step-definition-generator/accessible-role";
2
+ export declare const FR_ROLES: AccessibleRole[];