Skip to content

Commit 5e901dd

Browse files
committed
Fix failing tests
1 parent 6d19bbe commit 5e901dd

File tree

2 files changed

+80
-63
lines changed

2 files changed

+80
-63
lines changed

packages/compass-sidebar/src/components/multiple-connections/sidebar.spec.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)