File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/material-ui-lab/src/Autocomplete Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ describe('<Autocomplete />', () => {
9898 fireEvent . keyDown ( document . activeElement , { key : 'Enter' } ) ;
9999 fireEvent . change ( document . activeElement , { target : { value : 'o' } } ) ;
100100 checkHighlightIs ( 'two' ) ;
101-
102101 } ) ;
103102 } ) ;
104103
@@ -112,11 +111,11 @@ describe('<Autocomplete />', () => {
112111 renderInput = { params => < TextField { ...params } autoFocus /> }
113112 /> ,
114113 ) ;
115-
114+
116115 function checkHighlightIs ( expected ) {
117116 expect ( getByRole ( 'listbox' ) . querySelector ( 'li[data-focus]' ) ) . to . have . text ( expected ) ;
118117 }
119-
118+
120119 fireEvent . keyDown ( document . activeElement , { key : 'ArrowUp' } ) ;
121120 checkHighlightIs ( 'three' ) ;
122121 fireEvent . keyDown ( document . activeElement , { key : 'Enter' } ) ; // selects the last option
You can’t perform that action at this time.
0 commit comments