@uuv/runner-commons 2.65.0 → 2.67.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 +15 -0
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -9
- package/dist/step-definition-generator/common.d.ts +2 -3
- package/dist/step-definition-generator/common.js +0 -12
- package/dist/step-definition-generator/generate-base-step-definitions.d.ts +14 -1
- package/dist/step-definition-generator/generate-base-step-definitions.js +10 -13
- package/dist/step-definition-generator/generate-based-role-step-definitions.d.ts +2 -2
- package/dist/step-definition-generator/generate-based-role-step-definitions.js +11 -14
- package/dist/step-definition-generator/generate-step-definitions-documentation.js +46 -44
- package/dist/step-definition-generator/generate-step-definitions.js +2 -2
- package/package.json +3 -2
- package/dist/assets/i18n/web/en/en-enriched-wordings.json +0 -106
- package/dist/assets/i18n/web/en/en-roles.d.ts +0 -2
- package/dist/assets/i18n/web/en/en-roles.js +0 -137
- package/dist/assets/i18n/web/en/en.json +0 -314
- package/dist/assets/i18n/web/en/index.d.ts +0 -3
- package/dist/assets/i18n/web/en/index.js +0 -12
- package/dist/assets/i18n/web/fr/fr-roles.d.ts +0 -2
- package/dist/assets/i18n/web/fr/fr-roles.js +0 -599
- package/dist/assets/i18n/web/index.d.ts +0 -2
- package/dist/assets/i18n/web/index.js +0 -8
- package/dist/assets/i18n/web/template.json +0 -126
- package/dist/step-definition-generator/accessible-role.d.ts +0 -13
- package/dist/step-definition-generator/accessible-role.js +0 -13
- package/dist/step-definition-generator/lang-enum.d.ts +0 -4
- package/dist/step-definition-generator/lang-enum.js +0 -8
- package/src/assets/i18n/web/en/en-enriched-wordings.json +0 -107
- package/src/assets/i18n/web/en/en.json +0 -314
- package/src/assets/i18n/web/fr/fr-enriched-wordings.json +0 -106
- package/src/assets/i18n/web/fr/fr.json +0 -314
|
@@ -1,137 +0,0 @@
|
|
|
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
|
-
id;
|
|
16
|
-
name;
|
|
17
|
-
definiteArticle;
|
|
18
|
-
indefiniteArticle;
|
|
19
|
-
shouldGenerateClickSentence;
|
|
20
|
-
shouldGenerateTypeSentence;
|
|
21
|
-
shouldGenerateContainsSentence;
|
|
22
|
-
shouldGenerateKeyboardSentence;
|
|
23
|
-
shouldGenerateCheckedSentence;
|
|
24
|
-
constructor(id, name, definiteArticle = DEFINITE_ARTICLE.THE, indefiniteArticle = INDEFINITE_ARTICLE.A, shouldGenerateClickSentence = false, shouldGenerateTypeSentence = true, shouldGenerateContainsSentence = true, shouldGenerateKeyboardSentence = false, shouldGenerateCheckedSentence = false) {
|
|
25
|
-
super();
|
|
26
|
-
this.id = id;
|
|
27
|
-
this.name = name;
|
|
28
|
-
this.definiteArticle = definiteArticle;
|
|
29
|
-
this.indefiniteArticle = indefiniteArticle;
|
|
30
|
-
this.shouldGenerateClickSentence = shouldGenerateClickSentence;
|
|
31
|
-
this.shouldGenerateTypeSentence = shouldGenerateTypeSentence;
|
|
32
|
-
this.shouldGenerateContainsSentence = shouldGenerateContainsSentence;
|
|
33
|
-
this.shouldGenerateKeyboardSentence = shouldGenerateKeyboardSentence;
|
|
34
|
-
this.shouldGenerateCheckedSentence = shouldGenerateCheckedSentence;
|
|
35
|
-
}
|
|
36
|
-
static from(input) {
|
|
37
|
-
return new EnAccessibleRole(input.id, input.name, input.definiteArticle, input.indefiniteArticle, input.shouldGenerateClickSentence, input.shouldGenerateTypeSentence, input.shouldGenerateContainsSentence, input.shouldGenerateKeyboardSentence, input.shouldGenerateCheckedSentence);
|
|
38
|
-
}
|
|
39
|
-
getDefiniteArticle() {
|
|
40
|
-
return this.definiteArticle.toString();
|
|
41
|
-
}
|
|
42
|
-
getIndefiniteArticle() {
|
|
43
|
-
return this.indefiniteArticle.toString();
|
|
44
|
-
}
|
|
45
|
-
getOfDefiniteArticle() {
|
|
46
|
-
return `of ${this.definiteArticle}`;
|
|
47
|
-
}
|
|
48
|
-
namedAdjective() {
|
|
49
|
-
return "named";
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.EN_ROLES = [
|
|
53
|
-
{ id: "alert", name: "alert", indefiniteArticle: INDEFINITE_ARTICLE.AN },
|
|
54
|
-
{ id: "alertdialog", name: "alert dialog", indefiniteArticle: INDEFINITE_ARTICLE.AN },
|
|
55
|
-
{ id: "application", name: "application", indefiniteArticle: INDEFINITE_ARTICLE.AN },
|
|
56
|
-
{ id: "article", name: "article", indefiniteArticle: INDEFINITE_ARTICLE.AN },
|
|
57
|
-
{ id: "banner", name: "banner" },
|
|
58
|
-
{ id: "button", name: "button", shouldGenerateKeyboardSentence: true, shouldGenerateClickSentence: true },
|
|
59
|
-
{ id: "cell", name: "cell" },
|
|
60
|
-
{ id: "checkbox", name: "checkbox", shouldGenerateKeyboardSentence: true, shouldGenerateCheckedSentence: true, shouldGenerateClickSentence: true },
|
|
61
|
-
{ id: "columnheader", name: "column header" },
|
|
62
|
-
{ id: "combobox", name: "combo box", shouldGenerateTypeSentence: false, shouldGenerateKeyboardSentence: true, shouldGenerateClickSentence: true },
|
|
63
|
-
{ id: "command", name: "command" },
|
|
64
|
-
{ id: "comment", name: "comment" },
|
|
65
|
-
{ id: "complementary", name: "complementary" },
|
|
66
|
-
{ id: "composite", name: "composite" },
|
|
67
|
-
{ id: "contentinfo", name: "contentinfo" },
|
|
68
|
-
{ id: "definition", name: "definition" },
|
|
69
|
-
{ id: "dialog", name: "dialog" },
|
|
70
|
-
{ id: "directory", name: "directory" },
|
|
71
|
-
{ id: "document", name: "document" },
|
|
72
|
-
{ id: "feed", name: "flow" },
|
|
73
|
-
{ id: "figure", name: "figure" },
|
|
74
|
-
{ id: "form", name: "form" },
|
|
75
|
-
{ id: "generic", name: "generic" },
|
|
76
|
-
{ id: "grid", name: "grid" },
|
|
77
|
-
{ id: "gridcell", name: "grid cell" },
|
|
78
|
-
{ id: "group", name: "group" },
|
|
79
|
-
{ id: "heading", name: "title" },
|
|
80
|
-
{ id: "img", name: "image", indefiniteArticle: INDEFINITE_ARTICLE.AN },
|
|
81
|
-
{ id: "landmark", name: "landmark" },
|
|
82
|
-
{ id: "link", name: "link", shouldGenerateKeyboardSentence: true, shouldGenerateClickSentence: true },
|
|
83
|
-
{ id: "list", name: "list", shouldGenerateContainsSentence: false, shouldGenerateTypeSentence: false },
|
|
84
|
-
{ id: "listbox", name: "list box", shouldGenerateKeyboardSentence: true },
|
|
85
|
-
{ id: "listitem", name: "list item", shouldGenerateKeyboardSentence: true, shouldGenerateClickSentence: true },
|
|
86
|
-
{ id: "log", name: "log" },
|
|
87
|
-
{ id: "main", name: "main" },
|
|
88
|
-
{ id: "mark", name: "mark" },
|
|
89
|
-
{ id: "math", name: "math" },
|
|
90
|
-
{ id: "menu", name: "menu" },
|
|
91
|
-
{ id: "menubar", name: "menubar" },
|
|
92
|
-
{ id: "menuitem", name: "menuitem", shouldGenerateKeyboardSentence: true, shouldGenerateClickSentence: true },
|
|
93
|
-
{ id: "menuitemcheckbox", name: "menuitemcheckbox", shouldGenerateKeyboardSentence: true },
|
|
94
|
-
{ id: "menuitemradio", name: "menuitemradio", shouldGenerateKeyboardSentence: true, shouldGenerateCheckedSentence: true },
|
|
95
|
-
{ id: "meter", name: "counter" },
|
|
96
|
-
{ id: "navigation", name: "navigation" },
|
|
97
|
-
{ id: "none", name: "no" },
|
|
98
|
-
{ id: "note", name: "note" },
|
|
99
|
-
{ id: "option", name: "option", indefiniteArticle: INDEFINITE_ARTICLE.AN, shouldGenerateKeyboardSentence: true, shouldGenerateClickSentence: true },
|
|
100
|
-
{ id: "presentation", name: "presentation" },
|
|
101
|
-
{ id: "progressbar", name: "progress bar" },
|
|
102
|
-
{ id: "radio", name: "radio", shouldGenerateKeyboardSentence: true, shouldGenerateCheckedSentence: true, shouldGenerateClickSentence: true },
|
|
103
|
-
{ id: "radiogroup", name: "radio group" },
|
|
104
|
-
{ id: "range", name: "range" },
|
|
105
|
-
{ id: "region", name: "region" },
|
|
106
|
-
{ id: "roletype", name: "role type" },
|
|
107
|
-
{ id: "row", name: "row" },
|
|
108
|
-
{ id: "rowgroup", name: "row group" },
|
|
109
|
-
{ id: "rowheader", name: "row header" },
|
|
110
|
-
{ id: "scrollbar", name: "scroll bar" },
|
|
111
|
-
{ id: "search", name: "search", shouldGenerateKeyboardSentence: true },
|
|
112
|
-
{ id: "searchbox", name: "search box", shouldGenerateKeyboardSentence: true },
|
|
113
|
-
{ id: "section", name: "section" },
|
|
114
|
-
{ id: "sectionhead", name: "section header" },
|
|
115
|
-
{ id: "select", name: "select", shouldGenerateKeyboardSentence: true },
|
|
116
|
-
{ id: "separator", name: "separator" },
|
|
117
|
-
{ id: "slider", name: "slider", shouldGenerateKeyboardSentence: true },
|
|
118
|
-
{ id: "spinbutton", name: "spin button", shouldGenerateKeyboardSentence: true },
|
|
119
|
-
{ id: "status", name: "status" },
|
|
120
|
-
{ id: "structure", name: "structure" },
|
|
121
|
-
{ id: "suggestion", name: "suggestion" },
|
|
122
|
-
{ id: "switch", name: "switch", shouldGenerateKeyboardSentence: true },
|
|
123
|
-
{ id: "tab", name: "tab", shouldGenerateKeyboardSentence: true },
|
|
124
|
-
{ id: "table", name: "table" },
|
|
125
|
-
{ id: "tablist", name: "tablist" },
|
|
126
|
-
{ id: "tabpanel", name: "tabpanel" },
|
|
127
|
-
{ id: "term", name: "term" },
|
|
128
|
-
{ id: "textbox", name: "text box", shouldGenerateKeyboardSentence: true },
|
|
129
|
-
{ id: "timer", name: "timer" },
|
|
130
|
-
{ id: "toolbar", name: "toolbar" },
|
|
131
|
-
{ id: "tooltip", name: "tooltip" },
|
|
132
|
-
{ id: "tree", name: "tree" },
|
|
133
|
-
{ id: "treegrid", name: "tree grid" },
|
|
134
|
-
{ id: "treeitem", name: "tree item" },
|
|
135
|
-
{ id: "widget", name: "widget", shouldGenerateKeyboardSentence: true },
|
|
136
|
-
{ id: "window", name: "window" }
|
|
137
|
-
].map(role => EnAccessibleRole.from(role));
|
|
@@ -1,314 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,12 +0,0 @@
|
|
|
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; } });
|