Skip to content

Commit c612623

Browse files
improve first test
1 parent 4408ba2 commit c612623

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/kit-headless/src/components/select/select.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,10 @@ test.describe('Keyboard Behavior', () => {
513513
THEN the first option starting with the letter "j" should have data-highlighted`, async ({
514514
page,
515515
}) => {
516-
const { getRoot, getTrigger, openListbox } = await setup(page, 'typeahead');
517-
await openListbox('ArrowDown');
518-
await getTrigger().pressSequentially('j');
519-
const highlightedOpt = getRoot().locator('[data-highlighted]');
516+
const { driver: d } = await setup(page, 'typeahead');
517+
await d.openListbox('ArrowDown');
518+
await d.getItemAt(0).press('j');
519+
const highlightedOpt = d.getRoot().locator('[data-highlighted]');
520520
await expect(highlightedOpt).toContainText('j', { ignoreCase: true });
521521
});
522522

0 commit comments

Comments
 (0)