Skip to content

Commit

Permalink
fixup! Fix scrollable listbox not focusing first item
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnermaciel committed Nov 6, 2024
1 parent 953e409 commit 3d8fdca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/tests/listbox_grouped.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
Expand All @@ -190,7 +190,7 @@ ariaTest(
t,
ex.listboxSelector,
ex.optionSelector,
0
1
);
}
);
Expand Down
2 changes: 1 addition & 1 deletion test/tests/listbox_scrollable.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ ariaTest(
exampleFile,
'option-role',
async (t) => {
await assertAriaRoles(t, 'ex', 'option', 26, 'li');
await assertAriaRoles(t, 'ex', 'option', 27, 'li');
}
);

Expand Down

0 comments on commit 3d8fdca

Please sign in to comment.