File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/compass-e2e-tests/helpers Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ export const Single = {
281281// Multiple Connections sidebar
282282export 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
404405export const sidebarConnectionButton = ( connectionName : string ) : string => {
405- return `${ sidebarConnection ( connectionName ) } > div > button ` ;
406+ return `${ sidebarConnection ( connectionName ) } ${ Multiple . ConnectButton } ` ;
406407} ;
407408
408409export const sidebarConnectionActionButton = (
You can’t perform that action at this time.
0 commit comments