From 3d8fdca5812b32046dc82f6af9ad22ff58a004f8 Mon Sep 17 00:00:00 2001 From: Wagner Maciel Date: Wed, 6 Nov 2024 01:44:09 +0000 Subject: [PATCH] fixup! Fix scrollable listbox not focusing first item --- test/tests/listbox_grouped.js | 6 +++--- test/tests/listbox_scrollable.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/tests/listbox_grouped.js b/test/tests/listbox_grouped.js index 32ef9927f1..5672b1506f 100644 --- a/test/tests/listbox_grouped.js +++ b/test/tests/listbox_grouped.js @@ -176,11 +176,11 @@ ariaTest( ); ariaTest( - 'DOWN ARROW sends initial focus to the first option', + 'DOWN ARROW moves focus to the second option', exampleFile, 'key-down-arrow', async (t) => { - // Sending the key down arrow will put focus on the first option if no options are focused + // Sending the key down arrow will move focus to the second option. const listbox = await t.context.session.findElement( By.css(ex.listboxSelector) ); @@ -190,7 +190,7 @@ ariaTest( t, ex.listboxSelector, ex.optionSelector, - 0 + 1 ); } ); diff --git a/test/tests/listbox_scrollable.js b/test/tests/listbox_scrollable.js index 0833149317..9676dcafb5 100644 --- a/test/tests/listbox_scrollable.js +++ b/test/tests/listbox_scrollable.js @@ -75,7 +75,7 @@ ariaTest( exampleFile, 'option-role', async (t) => { - await assertAriaRoles(t, 'ex', 'option', 26, 'li'); + await assertAriaRoles(t, 'ex', 'option', 27, 'li'); } );