@uuv/playwright 2.16.0 → 2.17.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/dist/cucumber/step_definitions/playwright/generated/_en-generated-cucumber-steps-definition.js +25 -1
- package/dist/cucumber/step_definitions/playwright/generated/_fr-generated-cucumber-steps-definition.js +25 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_button.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_checkbox.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_combobox.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_link.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_listbox.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitem.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitemcheckbox.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitemradio.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_radio.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_search.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_searchbox.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_select.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_slider.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_spinbutton.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_switch.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_tab.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_textbox.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_widget.js +14 -0
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_button.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_checkbox.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_combobox.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_link.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_listbox.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitem.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitemcheckbox.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitemradio.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_radio.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_search.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_searchbox.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_select.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_slider.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_spinbutton.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_switch.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_tab.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_textbox.js +15 -1
- package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_widget.js +15 -1
- package/dist/lib/runner-playwright.js +1 -1
- package/package.json +3 -3
- package/src/cucumber/step_definitions/playwright/generated/_en-generated-cucumber-steps-definition.ts +31 -1
- package/src/cucumber/step_definitions/playwright/generated/_fr-generated-cucumber-steps-definition.ts +31 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_button.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_checkbox.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_combobox.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_link.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_listbox.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitem.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitemcheckbox.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitemradio.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_radio.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_search.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_searchbox.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_select.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_slider.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_spinbutton.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_switch.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_tab.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_textbox.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_widget.ts +21 -0
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_button.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_checkbox.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_combobox.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_link.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_listbox.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitem.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitemcheckbox.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitemradio.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_radio.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_search.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_searchbox.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_select.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_slider.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_spinbutton.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_switch.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_tab.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_textbox.ts +22 -1
- package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_widget.ts +22 -1
- package/target-config/cucumber.cjs +0 -1
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a menuitem named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "menuitem", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a menuitem named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "menuitem", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a menuitemcheckbox named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "menuitemcheckbox", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a menuitemcheckbox named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "menuitemcheckbox", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a menuitemradio named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "menuitemradio", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a menuitemradio named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "menuitemradio", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a radio named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "radio", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a radio named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "radio", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a search named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "search", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a search named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "search", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a search box named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "searchbox", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a search box named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "searchbox", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a select named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "select", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a select named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "select", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a slider named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "slider", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a slider named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "slider", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a spin button named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "spinbutton", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a spin button named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "spinbutton", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a switch named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "switch", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a switch named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "switch", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a tab named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "tab", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a tab named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "tab", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a text box named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "textbox", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a text box named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "textbox", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`the previous keyboard element focused should be a widget named {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "widget", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`the next keyboard element focused should be a widget named {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "widget", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -109,7 +109,7 @@ Then(
|
|
|
109
109
|
// Begin of Keyboard Section
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* 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/)
|
|
112
|
+
* 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
|
|
113
113
|
* */
|
|
114
114
|
Then(
|
|
115
115
|
`je dois voir un bouton nommé {string} avoir le focus clavier`,
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`le précédent élément avec le focus clavier doit être un bouton nommé {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "button", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`le prochain élément avec le focus clavier doit être un bouton nommé {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "button", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -109,7 +109,7 @@ Then(
|
|
|
109
109
|
// Begin of Keyboard Section
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* 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/)
|
|
112
|
+
* 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
|
|
113
113
|
* */
|
|
114
114
|
Then(
|
|
115
115
|
`je dois voir une case à cocher nommée {string} avoir le focus clavier`,
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`le précédent élément avec le focus clavier doit être une case à cocher nommée {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "checkbox", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`le prochain élément avec le focus clavier doit être une case à cocher nommée {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "checkbox", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -109,7 +109,7 @@ Then(
|
|
|
109
109
|
// Begin of Keyboard Section
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* 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/)
|
|
112
|
+
* 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
|
|
113
113
|
* */
|
|
114
114
|
Then(
|
|
115
115
|
`je dois voir une boîte à choix nommée {string} avoir le focus clavier`,
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`le précédent élément avec le focus clavier doit être une boîte à choix nommée {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "combobox", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`le prochain élément avec le focus clavier doit être une boîte à choix nommée {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "combobox", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -109,7 +109,7 @@ Then(
|
|
|
109
109
|
// Begin of Keyboard Section
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* 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/)
|
|
112
|
+
* 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
|
|
113
113
|
* */
|
|
114
114
|
Then(
|
|
115
115
|
`je dois voir un lien nommé {string} avoir le focus clavier`,
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`le précédent élément avec le focus clavier doit être un lien nommé {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "link", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`le prochain élément avec le focus clavier doit être un lien nommé {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "link", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -109,7 +109,7 @@ Then(
|
|
|
109
109
|
// Begin of Keyboard Section
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* 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/)
|
|
112
|
+
* 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
|
|
113
113
|
* */
|
|
114
114
|
Then(
|
|
115
115
|
`je dois voir une boîte à liste nommée {string} avoir le focus clavier`,
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`le précédent élément avec le focus clavier doit être une boîte à liste nommée {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "listbox", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`le prochain élément avec le focus clavier doit être une boîte à liste nommée {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "listbox", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -109,7 +109,7 @@ Then(
|
|
|
109
109
|
// Begin of Keyboard Section
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* 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/)
|
|
112
|
+
* 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
|
|
113
113
|
* */
|
|
114
114
|
Then(
|
|
115
115
|
`je dois voir un élément de menu nommé {string} avoir le focus clavier`,
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`le précédent élément avec le focus clavier doit être un élément de menu nommé {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "menuitem", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`le prochain élément avec le focus clavier doit être un élément de menu nommé {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "menuitem", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -109,7 +109,7 @@ Then(
|
|
|
109
109
|
// Begin of Keyboard Section
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* 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/)
|
|
112
|
+
* 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
|
|
113
113
|
* */
|
|
114
114
|
Then(
|
|
115
115
|
`je dois voir un menu d'élément de boîte à choix nommé {string} avoir le focus clavier`,
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`le précédent élément avec le focus clavier doit être un menu d'élément de boîte à choix nommé {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "menuitemcheckbox", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`le prochain élément avec le focus clavier doit être un menu d'élément de boîte à choix nommé {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "menuitemcheckbox", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|
|
@@ -109,7 +109,7 @@ Then(
|
|
|
109
109
|
// Begin of Keyboard Section
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* 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/)
|
|
112
|
+
* 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
|
|
113
113
|
* */
|
|
114
114
|
Then(
|
|
115
115
|
`je dois voir un menu d'élement de bouton radio nommé {string} avoir le focus clavier`,
|
|
@@ -118,4 +118,25 @@ Then(
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* */
|
|
124
|
+
Then(
|
|
125
|
+
`le précédent élément avec le focus clavier doit être un menu d'élement de bouton radio nommé {string}`,
|
|
126
|
+
async function (this: World, name: string) {
|
|
127
|
+
await this.page.keyboard.press("ShiftLeft+Tab");
|
|
128
|
+
await findWithRoleAndNameFocused(this, "menuitemradio", name);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
* */
|
|
135
|
+
Then(
|
|
136
|
+
`le prochain élément avec le focus clavier doit être un menu d'élement de bouton radio nommé {string}`,
|
|
137
|
+
async function (this: World, name: string) {
|
|
138
|
+
await this.page.keyboard.press("Tab");
|
|
139
|
+
await findWithRoleAndNameFocused(this, "menuitemradio", name);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
121
142
|
// End of Keyboard Section
|