@@ -18,7 +18,7 @@ describe('Select.Accessibility', () => {
1818  it ( 'pass aria info to internal input' ,  ( )  =>  { 
1919    const  MySelect  =  Select  as  any ; 
2020    const  wrapper  =  mount ( < MySelect  aria-label = "light"  data-attr = "bamboo"  useless = "2333"  /> ) ; 
21-     expect ( wrapper . find ( 'input' ) . props ( ) ) . toEqual ( 
21+     expect ( wrapper . find ( '.rc-select-selection-search- input' ) . props ( ) ) . toEqual ( 
2222      expect . objectContaining ( { 
2323        'aria-label' : 'light' , 
2424      } ) , 
@@ -48,20 +48,20 @@ describe('Select.Accessibility', () => {
4848    ) ; 
4949
5050    // First Match 
51-     wrapper . find ( 'input' ) . simulate ( 'change' ,  {  target : {  value : 'b'  }  } ) ; 
51+     wrapper . find ( '.rc-select-selection-search- input' ) . simulate ( 'change' ,  {  target : {  value : 'b'  }  } ) ; 
5252    jest . runAllTimers ( ) ; 
5353
5454    expectOpen ( wrapper ) ; 
5555    expect ( 
5656      wrapper . find ( '.rc-select-item-option-active .rc-select-item-option-content' ) . text ( ) , 
5757    ) . toEqual ( 'Bamboo' ) ; 
5858
59-     wrapper . find ( 'input' ) . simulate ( 'keyDown' ,  {  which : KeyCode . ENTER  } ) ; 
59+     wrapper . find ( '.rc-select-selection-search- input' ) . simulate ( 'keyDown' ,  {  which : KeyCode . ENTER  } ) ; 
6060    expectOpen ( wrapper ,  false ) ; 
6161
6262    // Next Match 
63-     wrapper . find ( 'input' ) . simulate ( 'change' ,  {  target : {  value : ''  }  } ) ; 
64-     wrapper . find ( 'input' ) . simulate ( 'change' ,  {  target : {  value : 'g'  }  } ) ; 
63+     wrapper . find ( '.rc-select-selection-search- input' ) . simulate ( 'change' ,  {  target : {  value : ''  }  } ) ; 
64+     wrapper . find ( '.rc-select-selection-search- input' ) . simulate ( 'change' ,  {  target : {  value : 'g'  }  } ) ; 
6565    jest . runAllTimers ( ) ; 
6666
6767    expectOpen ( wrapper ) ; 
0 commit comments