@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.
Files changed (79) hide show
  1. package/dist/cucumber/step_definitions/playwright/generated/_en-generated-cucumber-steps-definition.js +25 -1
  2. package/dist/cucumber/step_definitions/playwright/generated/_fr-generated-cucumber-steps-definition.js +25 -1
  3. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_button.js +14 -0
  4. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_checkbox.js +14 -0
  5. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_combobox.js +14 -0
  6. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_link.js +14 -0
  7. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_listbox.js +14 -0
  8. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitem.js +14 -0
  9. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitemcheckbox.js +14 -0
  10. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitemradio.js +14 -0
  11. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_radio.js +14 -0
  12. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_search.js +14 -0
  13. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_searchbox.js +14 -0
  14. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_select.js +14 -0
  15. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_slider.js +14 -0
  16. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_spinbutton.js +14 -0
  17. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_switch.js +14 -0
  18. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_tab.js +14 -0
  19. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_textbox.js +14 -0
  20. package/dist/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_widget.js +14 -0
  21. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_button.js +15 -1
  22. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_checkbox.js +15 -1
  23. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_combobox.js +15 -1
  24. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_link.js +15 -1
  25. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_listbox.js +15 -1
  26. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitem.js +15 -1
  27. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitemcheckbox.js +15 -1
  28. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitemradio.js +15 -1
  29. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_radio.js +15 -1
  30. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_search.js +15 -1
  31. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_searchbox.js +15 -1
  32. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_select.js +15 -1
  33. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_slider.js +15 -1
  34. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_spinbutton.js +15 -1
  35. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_switch.js +15 -1
  36. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_tab.js +15 -1
  37. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_textbox.js +15 -1
  38. package/dist/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_widget.js +15 -1
  39. package/dist/lib/runner-playwright.js +1 -1
  40. package/package.json +3 -3
  41. package/src/cucumber/step_definitions/playwright/generated/_en-generated-cucumber-steps-definition.ts +31 -1
  42. package/src/cucumber/step_definitions/playwright/generated/_fr-generated-cucumber-steps-definition.ts +31 -1
  43. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_button.ts +21 -0
  44. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_checkbox.ts +21 -0
  45. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_combobox.ts +21 -0
  46. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_link.ts +21 -0
  47. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_listbox.ts +21 -0
  48. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitem.ts +21 -0
  49. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitemcheckbox.ts +21 -0
  50. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_menuitemradio.ts +21 -0
  51. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_radio.ts +21 -0
  52. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_search.ts +21 -0
  53. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_searchbox.ts +21 -0
  54. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_select.ts +21 -0
  55. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_slider.ts +21 -0
  56. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_spinbutton.ts +21 -0
  57. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_switch.ts +21 -0
  58. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_tab.ts +21 -0
  59. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_textbox.ts +21 -0
  60. package/src/cucumber/step_definitions/playwright/generated/enriched/en/_en-generated-steps-definition_widget.ts +21 -0
  61. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_button.ts +22 -1
  62. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_checkbox.ts +22 -1
  63. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_combobox.ts +22 -1
  64. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_link.ts +22 -1
  65. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_listbox.ts +22 -1
  66. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitem.ts +22 -1
  67. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitemcheckbox.ts +22 -1
  68. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_menuitemradio.ts +22 -1
  69. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_radio.ts +22 -1
  70. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_search.ts +22 -1
  71. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_searchbox.ts +22 -1
  72. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_select.ts +22 -1
  73. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_slider.ts +22 -1
  74. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_spinbutton.ts +22 -1
  75. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_switch.ts +22 -1
  76. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_tab.ts +22 -1
  77. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_textbox.ts +22 -1
  78. package/src/cucumber/step_definitions/playwright/generated/enriched/fr/_fr-generated-steps-definition_widget.ts +22 -1
  79. package/target-config/cucumber.cjs +0 -1
@@ -42,7 +42,6 @@ const path_1 = __importDefault(require("path"));
42
42
  * */
43
43
  (0, cucumber_1.Given)(`I start a keyboard navigation from the top of the page`, async function () {
44
44
  await this.page.mouse.click(0.5, 0.5);
45
- await this.page.keyboard.press("Tab");
46
45
  });
47
46
  /**
48
47
  * 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://
@@ -329,6 +328,17 @@ function getConfigDir() {
329
328
  (0, cucumber_1.Then)(`the element with role {string} and name {string} should be keyboard focused`, async function (expectedRole, name) {
330
329
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, expectedRole, name);
331
330
  });
331
+ /**
332
+ * Checks that the Html element with the specified selector is focused
333
+ * */
334
+ (0, cucumber_1.Then)(`the element with selector {string} should be keyboard focused`, async function (selector) {
335
+ await (0, core_engine_1.getPageOrElement)(this).then(async (element) => {
336
+ const locator = element.locator(selector);
337
+ await locator.focus({ timeout: 10000 });
338
+ await (0, test_1.expect)(locator).toHaveCount(1);
339
+ await (0, test_1.expect)(locator).toBeFocused();
340
+ });
341
+ });
332
342
  /**
333
343
  * 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
334
344
  * */
@@ -366,6 +376,20 @@ function getConfigDir() {
366
376
  await (0, test_1.expect)(byLabel.filter({ hasText: expectedTextContent })).toHaveCount(1);
367
377
  });
368
378
  });
379
+ /**
380
+ * 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
381
+ * */
382
+ (0, cucumber_1.When)(`the previous keyboard element focused should have name {string} and role {string}`, async function (expectedRole, name) {
383
+ await this.page.keyboard.press("ShiftLeft+Tab");
384
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, expectedRole, name);
385
+ });
386
+ /**
387
+ * "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
388
+ * */
389
+ (0, cucumber_1.When)(`the next keyboard element focused should have name {string} and role {string}`, async function (expectedRole, name) {
390
+ await this.page.keyboard.press("Tab");
391
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, expectedRole, name);
392
+ });
369
393
  /**
370
394
  * Wait that a named mock has been consumed until timeout
371
395
  * */
@@ -42,7 +42,6 @@ const path_1 = __importDefault(require("path"));
42
42
  * */
43
43
  (0, cucumber_1.Given)(`je commence une navigation au clavier depuis le haut de la page`, async function () {
44
44
  await this.page.mouse.click(0.5, 0.5);
45
- await this.page.keyboard.press("Tab");
46
45
  });
47
46
  /**
48
47
  * Navigue vers l'Uri passé en paramètre (url complète étant constituée de la BASE_URL + Uri) ou navigue vers l'Url si ça commence par http:// ou https://
@@ -329,6 +328,17 @@ function getConfigDir() {
329
328
  (0, cucumber_1.Then)(`l'élément avec le rôle {string} et le nom {string} doit avoir le focus clavier`, async function (expectedRole, name) {
330
329
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, expectedRole, name);
331
330
  });
331
+ /**
332
+ * Vérifie que l'élément Html avec le sélecteur est focus
333
+ * */
334
+ (0, cucumber_1.Then)(`l'élément avec le sélecteur {string} doit avoir le focus clavier`, async function (selector) {
335
+ await (0, core_engine_1.getPageOrElement)(this).then(async (element) => {
336
+ const locator = element.locator(selector);
337
+ await locator.focus({ timeout: 10000 });
338
+ await (0, test_1.expect)(locator).toHaveCount(1);
339
+ await (0, test_1.expect)(locator).toBeFocused();
340
+ });
341
+ });
332
342
  /**
333
343
  * Vérifie qu'un élément Html existe avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types), le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) et le contenu spécifiés, et avec l'attribut disabled à true
334
344
  * */
@@ -366,6 +376,20 @@ function getConfigDir() {
366
376
  await (0, test_1.expect)(byLabel.filter({ hasText: expectedTextContent })).toHaveCount(1);
367
377
  });
368
378
  });
379
+ /**
380
+ * 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
381
+ * */
382
+ (0, cucumber_1.When)(`le précédent élément avec le focus clavier doit avoir le role {string} et le nom {string}`, async function (expectedRole, name) {
383
+ await this.page.keyboard.press("ShiftLeft+Tab");
384
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, expectedRole, name);
385
+ });
386
+ /**
387
+ * "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
388
+ * */
389
+ (0, cucumber_1.When)(`le prochain élément avec le focus clavier doit avoir le role {string} et le nom {string}`, async function (expectedRole, name) {
390
+ await this.page.keyboard.press("Tab");
391
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, expectedRole, name);
392
+ });
369
393
  /**
370
394
  * Vérifie qu'un bouchon nommé ait bien été consommé
371
395
  * */
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a button named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "button", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a button named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "button", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a button named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "button", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a checkbox named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "checkbox", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a checkbox named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "checkbox", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a checkbox named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "checkbox", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a combo box named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "combobox", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a combo box named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "combobox", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a combo box named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "combobox", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a link named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "link", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a link named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "link", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a link named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "link", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a list box named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "listbox", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a list box named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "listbox", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a list box named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "listbox", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a menuitem named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "menuitem", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a menuitem named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "menuitem", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a menuitem named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "menuitem", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a menuitemcheckbox named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "menuitemcheckbox", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a menuitemcheckbox named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "menuitemcheckbox", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a menuitemcheckbox named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "menuitemcheckbox", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a menuitemradio named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "menuitemradio", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a menuitemradio named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "menuitemradio", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a menuitemradio named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "menuitemradio", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a radio named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "radio", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a radio named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "radio", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a radio named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "radio", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a search named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "search", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a search named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "search", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a search named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "search", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a search box named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "searchbox", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a search box named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "searchbox", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a search box named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "searchbox", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a select named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "select", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a select named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "select", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a select named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "select", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a slider named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "slider", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a slider named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "slider", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a slider named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "slider", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a spin button named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "spinbutton", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a spin button named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "spinbutton", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a spin button named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "spinbutton", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a switch named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "switch", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a switch named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "switch", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a switch named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "switch", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a tab named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "tab", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a tab named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "tab", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a tab named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "tab", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a text box named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "textbox", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a text box named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "textbox", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a text box named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "textbox", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -79,4 +79,18 @@ const test_1 = require("@playwright/test");
79
79
  (0, cucumber_1.Then)(`I should see a widget named {string} keyboard focused`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "widget", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`the previous keyboard element focused should be a widget named {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "widget", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`the next keyboard element focused should be a widget named {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "widget", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -74,9 +74,23 @@ const test_1 = require("@playwright/test");
74
74
  // End of Content Section
75
75
  // Begin of Keyboard Section
76
76
  /**
77
- * Vérifie que l'élément Html avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) est focus
77
+ * 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
78
78
  * */
79
79
  (0, cucumber_1.Then)(`je dois voir un bouton nommé {string} avoir le focus clavier`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "button", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`le précédent élément avec le focus clavier doit être un bouton nommé {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "button", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`le prochain élément avec le focus clavier doit être un bouton nommé {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "button", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -74,9 +74,23 @@ const test_1 = require("@playwright/test");
74
74
  // End of Content Section
75
75
  // Begin of Keyboard Section
76
76
  /**
77
- * Vérifie que l'élément Html avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) est focus
77
+ * 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
78
78
  * */
79
79
  (0, cucumber_1.Then)(`je dois voir une case à cocher nommée {string} avoir le focus clavier`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "checkbox", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`le précédent élément avec le focus clavier doit être une case à cocher nommée {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "checkbox", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`le prochain élément avec le focus clavier doit être une case à cocher nommée {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "checkbox", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -74,9 +74,23 @@ const test_1 = require("@playwright/test");
74
74
  // End of Content Section
75
75
  // Begin of Keyboard Section
76
76
  /**
77
- * Vérifie que l'élément Html avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) est focus
77
+ * 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
78
78
  * */
79
79
  (0, cucumber_1.Then)(`je dois voir une boîte à choix nommée {string} avoir le focus clavier`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "combobox", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`le précédent élément avec le focus clavier doit être une boîte à choix nommée {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "combobox", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`le prochain élément avec le focus clavier doit être une boîte à choix nommée {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "combobox", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -74,9 +74,23 @@ const test_1 = require("@playwright/test");
74
74
  // End of Content Section
75
75
  // Begin of Keyboard Section
76
76
  /**
77
- * Vérifie que l'élément Html avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) est focus
77
+ * 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
78
78
  * */
79
79
  (0, cucumber_1.Then)(`je dois voir un lien nommé {string} avoir le focus clavier`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "link", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`le précédent élément avec le focus clavier doit être un lien nommé {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "link", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`le prochain élément avec le focus clavier doit être un lien nommé {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "link", name);
95
+ });
82
96
  // End of Keyboard Section
@@ -74,9 +74,23 @@ const test_1 = require("@playwright/test");
74
74
  // End of Content Section
75
75
  // Begin of Keyboard Section
76
76
  /**
77
- * Vérifie que l'élément Html avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) est focus
77
+ * 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
78
78
  * */
79
79
  (0, cucumber_1.Then)(`je dois voir une boîte à liste nommée {string} avoir le focus clavier`, async function (name) {
80
80
  await (0, core_engine_1.findWithRoleAndNameFocused)(this, "listbox", name);
81
81
  });
82
+ /**
83
+ * 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
84
+ * */
85
+ (0, cucumber_1.Then)(`le précédent élément avec le focus clavier doit être une boîte à liste nommée {string}`, async function (name) {
86
+ await this.page.keyboard.press("ShiftLeft+Tab");
87
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "listbox", name);
88
+ });
89
+ /**
90
+ * 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
91
+ * */
92
+ (0, cucumber_1.Then)(`le prochain élément avec le focus clavier doit être une boîte à liste nommée {string}`, async function (name) {
93
+ await this.page.keyboard.press("Tab");
94
+ await (0, core_engine_1.findWithRoleAndNameFocused)(this, "listbox", name);
95
+ });
82
96
  // End of Keyboard Section