diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js
index 53505f88fdff4c..a48b16f6e17c3f 100644
--- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js
+++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js
@@ -1144,10 +1144,11 @@ describe('', () => {
expect(combobox).to.have.attribute('aria-expanded', 'true');
});
- it('should toggle list box when input is empty', () => {
+ it('should not toggle list box', () => {
const handleChange = spy();
const { getByRole } = render(
}
@@ -1157,11 +1158,9 @@ describe('', () => {
const textbox = getByRole('textbox');
expect(combobox).to.have.attribute('aria-expanded', 'false');
- fireEvent.mouseDown(textbox); // Open listbox
+ fireEvent.mouseDown(textbox);
expect(combobox).to.have.attribute('aria-expanded', 'true');
- fireEvent.mouseDown(textbox); // close listbox
- expect(combobox).to.have.attribute('aria-expanded', 'false');
- fireEvent.mouseDown(textbox); // open listbox
+ fireEvent.mouseDown(textbox);
expect(combobox).to.have.attribute('aria-expanded', 'true');
});
});