Skip to content

Commit 8240870

Browse files
fix(cypress): attempt to fix async error in cypress
1 parent ef1e1f2 commit 8240870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/kit-headless/src/components/autocomplete/autocomplete.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,11 @@ describe('Autocomplete', () => {
296296
THEN focus should move back to the previous option in the list.`, () => {
297297
cy.mount(<RegularAutocomplete />);
298298

299-
cy.get('input').type(`A`);
299+
cy.get('input').type(`Ba`);
300300

301-
cy.findByRole('listbox').should('be.visible');
301+
cy.findByRole('listbox');
302302

303-
cy.findByRole('option', { name: 'Apricot' }).focus().type(`{uparrow}`);
303+
cy.findByRole('option', { name: 'Jabuticaba' }).focus().type(`{uparrow}`);
304304

305305
cy.get('li').filter(':visible').first().should('have.focus');
306306
});

0 commit comments

Comments
 (0)