File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -460,18 +460,15 @@ describe('Multiple Connections Sidebar Component', function () {
460460 expect ( connectionsStoreActions . disconnect ) . to . have . been . called ;
461461 } ) ;
462462
463- it ( 'should connect when the user tries to expand an inactive connection' , async function ( ) {
463+ it ( 'should not connect when the user tries to expand an inactive connection' , function ( ) {
464464 const connectionItem = screen . getByTestId ( savedRecentConnection . id ) ;
465465
466466 userEvent . click (
467467 within ( connectionItem ) . getByLabelText ( 'Caret Right Icon' )
468468 ) ;
469-
470- await waitFor ( ( ) => {
471- expect ( connectionsStoreActions . connect ) . to . be . calledWith (
472- savedRecentConnection
473- ) ;
474- } ) ;
469+ expect ( connectionsStoreActions . connect ) . to . not . be . calledWith (
470+ savedRecentConnection
471+ ) ;
475472 } ) ;
476473
477474 it ( 'should open edit connection modal when clicked on edit connection action' , function ( ) {
You can’t perform that action at this time.
0 commit comments