From 88d5c687d87978189ed0e8faa1c90883d06188d9 Mon Sep 17 00:00:00 2001 From: Diego Andai Date: Fri, 22 Sep 2023 15:04:53 -0300 Subject: [PATCH] Revert "Remove unnecessary hidden option in test queries" This reverts commit 7e3539c528ee279f887bb25927f79715979abca6. --- 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 112837807ff78b..c861a904ac5055 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')).to.have.attribute('aria-expanded', 'true'); + expect(getByRole('combobox', { hidden: true })).to.have.attribute('aria-expanded', 'true'); }); }); @@ -439,7 +439,7 @@ describe('); - expect(getByRole('combobox')).to.have.attribute('aria-expanded', 'true'); + expect(getByRole('combobox', { hidden: true })).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')).to.have.attribute('aria-controls', listboxId); + expect(getByRole('combobox', { hidden: true })).to.have.attribute('aria-controls', listboxId); }); specify('the listbox is focusable', () => { @@ -856,7 +856,7 @@ describe('