Skip to content

Commit 5ac6377

Browse files
committed
Invert sidebar test
1 parent 7579e5c commit 5ac6377

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
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
@@ -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 () {

0 commit comments

Comments
 (0)