Skip to content

Commit

Permalink
Add assertion to catch future regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai committed Nov 15, 2024
1 parent dee5d50 commit 0d2d298
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ describe('<Autocomplete />', () => {
expect(textbox).to.have.attribute('aria-expanded', 'true');

const listbox = getByRole('listbox');
expect(listbox.tagName.toLowerCase()).to.equal('ul');
expect(textbox).to.have.attribute('aria-controls', listbox.getAttribute('id'));
expect(textbox, 'no option is focused when opened').not.to.have.attribute(
'aria-activedescendant',
Expand Down

0 comments on commit 0d2d298

Please sign in to comment.