diff --git a/packages/mui-material/src/Select/Select.test.js b/packages/mui-material/src/Select/Select.test.js index c861a904ac5055..112837807ff78b 100644 --- a/packages/mui-material/src/Select/Select.test.js +++ b/packages/mui-material/src/Select/Select.test.js @@ -308,7 +308,7 @@ describe('); - expect(getByRole('combobox', { hidden: true })).to.have.attribute('aria-expanded', 'true'); + expect(getByRole('combobox')).to.have.attribute('aria-expanded', 'true'); }); }); @@ -439,7 +439,7 @@ describe('); - expect(getByRole('combobox', { hidden: true })).to.have.attribute('aria-expanded', 'true'); + expect(getByRole('combobox')).to.have.attribute('aria-expanded', 'true'); }); specify('ARIA 1.2: aria-expanded="false" if the listbox isn\'t displayed', () => { @@ -482,7 +482,7 @@ describe('); const listboxId = getByRole('listbox').id; - expect(getByRole('combobox', { hidden: true })).to.have.attribute('aria-controls', listboxId); + expect(getByRole('combobox')).to.have.attribute('aria-controls', listboxId); }); specify('the listbox is focusable', () => { @@ -856,7 +856,7 @@ describe('