diff --git a/packages/material-ui/src/Select/Select.test.js b/packages/material-ui/src/Select/Select.test.js index 7a2313c05277be..cd165c65f76b4c 100644 --- a/packages/material-ui/src/Select/Select.test.js +++ b/packages/material-ui/src/Select/Select.test.js @@ -93,27 +93,14 @@ describe(' { - // simulating certain platforms that focus on mousedown - if (event.defaultPrevented === false) { - event.currentTarget.focus(); - } - }} - value="" - > + , ); const trigger = getByRole('button'); - // simulating user click - act(() => { - fireEvent.mouseDown(trigger); - trigger.click(); - }); + fireEvent.mouseDown(trigger); expect(handleBlur.callCount).to.equal(0); expect(getByRole('listbox')).to.be.ok; @@ -611,7 +598,6 @@ describe('', () => { stub(button, 'clientWidth').get(() => 14); fireEvent.mouseDown(button); - expect(getByTestId('paper').style).to.have.property('minWidth', '14px'); }); @@ -665,7 +650,6 @@ describe(' integration', () => { const trigger = getByRole('button'); // Let's open the select component // in the browser user click also focuses - trigger.focus(); fireEvent.mouseDown(trigger); const options = getAllByRole('option'); @@ -81,7 +80,6 @@ describe('