Skip to content

Commit f2a74f0

Browse files
committed
tests
1 parent a67a517 commit f2a74f0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/compass-connections/src/components/legacy-connections.spec.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function loadSavedConnectionAndConnect(connectionInfo: ConnectionInfo) {
2525
)
2626
);
2727

28-
const connectButton = screen.getByRole('button', { name: 'Connect' });
28+
const connectButton = screen.getByRole('button', { name: 'Save & Connect' });
2929
userEvent.click(connectButton);
3030

3131
// Wait for the connecting... modal to hide.
@@ -267,7 +267,9 @@ describe.skip('Connections Component', function () {
267267
)
268268
);
269269

270-
const connectButton = screen.getByRole('button', { name: 'Connect' });
270+
const connectButton = screen.getByRole('button', {
271+
name: 'Save & Connect',
272+
});
271273
userEvent.click(connectButton);
272274

273275
// Wait for the connecting... modal to be shown.

packages/compass-web/src/entrypoint.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ describe('CompassWeb', function () {
8181
screen.getAllByRole('button', { name: 'Add new connection' })[0]
8282
);
8383
await waitFor(() => {
84-
screen.getByRole('button', { name: 'Connect' });
84+
screen.getByRole('button', { name: 'Save & Connect' });
8585
});
86-
userEvent.click(screen.getByRole('button', { name: 'Connect' }));
86+
userEvent.click(screen.getByRole('button', { name: 'Save & Connect' }));
8787
return result;
8888
}
8989

0 commit comments

Comments
 (0)