From 7e3539c528ee279f887bb25927f79715979abca6 Mon Sep 17 00:00:00 2001 From: Diego Andai Date: Fri, 22 Sep 2023 14:46:39 -0300 Subject: [PATCH] Remove unnecessary hidden option in test queries --- packages/mui-material/src/Select/Select.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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('