File tree Expand file tree Collapse file tree 2 files changed +80
-63
lines changed Expand file tree Collapse file tree 2 files changed +80
-63
lines changed Original file line number Diff line number Diff line change @@ -363,16 +363,13 @@ describe('Multiple Connections Sidebar Component', function () {
363363 const favoriteConnectionId = savedFavoriteConnection . id ;
364364 const recentConnectionId = savedRecentConnection . id ;
365365
366- const activeConnectionsToggleButton = screen . getByLabelText (
367- 'Showing all connections'
368- ) ;
369-
370366 expect ( screen . queryByTestId ( favoriteConnectionId ) ) . to . be . visible ;
371367 expect ( screen . queryByTestId ( recentConnectionId ) ) . to . be . visible ;
372368
373- userEvent . click ( activeConnectionsToggleButton ) ;
374- expect ( activeConnectionsToggleButton . ariaLabel ) . equals (
375- 'Showing active connections'
369+ userEvent . click ( screen . getByLabelText ( 'Filter connections' ) ) ;
370+
371+ userEvent . click (
372+ screen . getByLabelText ( 'Show only active connections' )
376373 ) ;
377374
378375 expect ( screen . queryByTestId ( favoriteConnectionId ) ) . to . be . null ;
You can’t perform that action at this time.
0 commit comments