Skip to content

Commit 7579e5c

Browse files
committed
Update e2e tests
1 parent 022ed4a commit 7579e5c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/compass-e2e-tests/helpers/commands/connect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ export async function connectByName(
185185
connectionName: string,
186186
options: ConnectionResultOptions = {}
187187
) {
188+
await browser.hover(Selectors.sidebarConnection(connectionName));
188189
await browser.clickVisible(Selectors.sidebarConnectionButton(connectionName));
189190
await browser.waitForConnectionResult(connectionName, options);
190191
}

packages/compass-e2e-tests/helpers/selectors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ export const Single = {
281281
// Multiple Connections sidebar
282282
export const Multiple = {
283283
ConnectionsTitle: '[data-testid="connections-header"]',
284+
ConnectButton: '[data-action="connection-connect"]',
284285
SidebarNewConnectionButton: '[data-action="add-new-connection"]',
285286
ConnectionMenu: '[data-testid="sidebar-navigation-item-actions"]',
286287
CreateDatabaseButton:
@@ -402,7 +403,7 @@ export const sidebarConnection = (connectionName: string): string => {
402403
};
403404

404405
export const sidebarConnectionButton = (connectionName: string): string => {
405-
return `${sidebarConnection(connectionName)} > div > button`;
406+
return `${sidebarConnection(connectionName)} ${Multiple.ConnectButton}`;
406407
};
407408

408409
export const sidebarConnectionActionButton = (

0 commit comments

Comments
 (0)