@@ -61,6 +61,15 @@ export const ConnectionFormErrorMessage =
6161 '[data-testid="connection-error-summary"]' ;
6262export const CancelConnectionButton =
6363 '[data-testid="cancel-connection-button"]' ;
64+ export const ConnectionFormConnectionName =
65+ '[data-testid="personalization-name-input"]' ;
66+ export const ConnectionFormConnectionColor =
67+ '[data-testid="personalization-color-input"]' ;
68+ export const ConnectionFormFavoriteCheckbox =
69+ '[data-testid="personalization-favorite-checkbox"]' ;
70+ export const ConnectionFormConnectButton = '[data-testid="connect-button"]' ;
71+ export const ConnectionFormSaveAndConnectButton =
72+ '[data-testid="save-and-connect-button"]' ;
6473
6574export const AdvancedOptionsTabs = '[aria-label="Advanced Options Tabs"]' ;
6675export const SelectedAdvancedOptionsTab = `${ AdvancedOptionsTabs } [aria-selected="true"]` ;
@@ -223,12 +232,8 @@ export const ConnectionModalTitle = `${ConnectionModal} h3`;
223232export const ConnectionModalCloseButton = `${ ConnectionModal } [aria-label="Close modal"]` ;
224233export const ConnectionModalConnectButton = '[data-testid="connect-button"]' ;
225234export const ConnectionModalSaveButton = '[data-testid="save-button"]' ;
226- export const ConnectionFormConnectionName =
227- '[data-testid="personalization-name-input"]' ;
228- export const ConnectionFormConnectionColor =
229- '[data-testid="personalization-color-input"]' ;
230- export const ConnectionFormFavoriteCheckbox =
231- '[data-testid="personalization-favorite-checkbox"]' ;
235+
236+ // Connection process toast
232237export const connectionToastById = ( connectionId : string ) => {
233238 return `[data-testid="toast-connection-status--${ connectionId } "]` ;
234239} ;
@@ -238,7 +243,6 @@ export const ConnectionToastErrorReviewButton =
238243
239244// Connections sidebar
240245export const ConnectionsTitle = '[data-testid="connections-header"]' ;
241- export const ConnectButton = '[data-action="connection-connect"]' ;
242246export const SidebarNewConnectionButton = '[data-action="add-new-connection"]' ;
243247export const ConnectionMenu = '[data-testid="sidebar-navigation-item-actions"]' ;
244248export const CreateDatabaseButton =
@@ -356,7 +360,9 @@ export const sidebarConnection = (connectionName: string): string => {
356360} ;
357361
358362export const sidebarConnectionButton = ( connectionName : string ) : string => {
359- return `${ sidebarConnection ( connectionName ) } ${ ConnectButton } ` ;
363+ return `${ sidebarConnection (
364+ connectionName
365+ ) } [data-action="connection-connect"]`;
360366} ;
361367
362368export const sidebarConnectionActionButton = (
0 commit comments