      expect(screen.getAllByRole('listitem', { hidden: false })).to.have.length(4);
      expect(screen.getByRole('list')).to.have.text('first/second/third/fourth');
 diff --git a/packages/material-ui/src/ClickAwayListener/ClickAwayListener.test.js b/packages/material-ui/src/ClickAwayListener/ClickAwayListener.test.js
-index 4e4895ed53..eee7a05f0b 100644
+index fe9020d480..52d53b4bea 100644
 --- a/packages/material-ui/src/ClickAwayListener/ClickAwayListener.test.js
 +++ b/packages/material-ui/src/ClickAwayListener/ClickAwayListener.test.js
-@@ -133,8 +133,7 @@ describe('<ClickAwayListener />', () => {
+@@ -160,8 +160,7 @@ describe('<ClickAwayListener />', () => {
        expect(handleClickAway.callCount).to.equal(0);
  
        fireEvent.click(getByText('Stop inside a portal'));

         'None of the options match with `"not a good value"`',
         'None of the options match with `"not a good value"`',
       ]);
@@ -1251,11 +1246,7 @@ describe('<Autocomplete />', () => {
             groupBy={(option) => option.group}
           />,
         );

     });
 
     it('should warn about wrong theme function', () => {
@@ -139,11 +135,7 @@ describe('ThemeProvider', () => {
             ,
           </ThemeProvider>,
         );
