@@ -25,7 +25,7 @@ export const expandConnectionSettingsform = () => {
2525} ;
2626
2727export const failsOnEmptyFormSubmission = ( ) => {
28- cy . getBySel ( 'save -database' ) . click ( ) ;
28+ cy . getBySel ( 'connect -database-btn ' ) . click ( ) ;
2929 cy . get ( '.notification-error' ) . should ( 'be.visible' ) ;
3030} ;
3131
@@ -36,7 +36,7 @@ export const addsNewPostgresDatabaseWithUrl = () => {
3636 cy . getBySel ( 'max-connections' ) . type ( '50' ) ;
3737 cy . getBySel ( 'idle-timeout' ) . type ( '180' ) ;
3838 cy . getBySel ( 'retries' ) . type ( '1' ) ;
39- cy . getBySel ( 'save -database' ) . click ( ) ;
39+ cy . getBySel ( 'connect -database-btn ' ) . click ( ) ;
4040 cy . get ( '.notification-success' , { timeout : 10000 } )
4141 . should ( 'be.visible' )
4242 . and ( 'contain' , 'Database added successfully!' ) ;
@@ -56,7 +56,7 @@ export const addsNewPgDBWithConParams = () => {
5656 cy . getBySel ( 'password' ) . type ( config . password ) ;
5757 }
5858 cy . getBySel ( 'database-name' ) . type ( config . dbName ) ;
59- cy . getBySel ( 'save -database' ) . click ( ) ;
59+ cy . getBySel ( 'connect -database-btn ' ) . click ( ) ;
6060 cy . get ( '.notification-success' , { timeout : 10000 } )
6161 . should ( 'be.visible' )
6262 . and ( 'contain' , 'Database added successfully!' ) ;
@@ -70,7 +70,7 @@ export const addsNewPgDBWithEnvVar = () => {
7070 cy . getBySel ( 'database-display-name' ) . type ( 'testDB3' ) ;
7171 cy . getBySel ( 'database-type' ) . select ( 'postgres' ) ;
7272 cy . getBySel ( 'database-url-env' ) . type ( 'HASURA_GRAPHQL_DATABASE_URL' ) ;
73- cy . getBySel ( 'save -database' ) . click ( ) ;
73+ cy . getBySel ( 'connect -database-btn ' ) . click ( ) ;
7474 cy . get ( '.notification-success' , { timeout : 10000 } )
7575 . should ( 'be.visible' )
7676 . and ( 'contain' , 'Database added successfully!' ) ;
@@ -82,7 +82,7 @@ export const failDuplicateNameDb = () => {
8282 cy . get ( 'button' ) . contains ( 'Connect Database' ) . click ( ) ;
8383 cy . getBySel ( 'database-display-name' ) . type ( 'testDB1' ) ;
8484 cy . getBySel ( 'database-url' ) . type ( dbUrl ) ;
85- cy . getBySel ( 'save -database' ) . click ( ) ;
85+ cy . getBySel ( 'connect -database-btn ' ) . click ( ) ;
8686 cy . get ( '.notification-error' )
8787 . should ( 'be.visible' )
8888 . and ( 'contain' , 'Add data source failed' )
0 commit comments