@@ -76,6 +76,7 @@ const dbData = [
76
76
}
77
77
] ;
78
78
const findImportedRdmDbNameInList = async ( dbName : string ) : Promise < string > => rdmData . dbImportedNames . find ( item => item === dbName ) ! ;
79
+ const hiddenPassword = '************' ;
79
80
80
81
fixture `Import databases`
81
82
. meta ( { type : 'critical_path' , rte : rte . none } )
@@ -153,7 +154,7 @@ test('Connection import from JSON', async t => {
153
154
await t . expect ( myRedisDatabasePage . AddRedisDatabase . usernameInput . value ) . eql ( rdmListOfDB [ 1 ] . username , 'Username import incorrect' ) ;
154
155
// Verify password imported
155
156
// Verify that user can see 12 hidden characters regardless of the actual database password when it is set
156
- await t . expect ( myRedisDatabasePage . AddRedisDatabase . passwordInput . value ) . eql ( '************' , 'Password import incorrect' ) ;
157
+ await t . expect ( myRedisDatabasePage . AddRedisDatabase . passwordInput . value ) . eql ( hiddenPassword , 'Password import incorrect' ) ;
157
158
158
159
// Verify cluster connection type imported
159
160
await databaseHelper . clickOnEditDatabaseByName ( rdmData . dbImportedNames [ 2 ] ) ;
@@ -257,11 +258,11 @@ test('Import SSH parameters', async t => {
257
258
await t . expect ( myRedisDatabasePage . AddRedisDatabase . sshPortInput . value ) . eql ( ( racompListOfSSHDB [ 0 ] . sshPort ) . toString ( ) , 'SSH port import incorrect' ) ;
258
259
await t . expect ( myRedisDatabasePage . AddRedisDatabase . sshUsernameInput . value ) . eql ( racompListOfSSHDB [ 0 ] . sshUser , 'SSH username import incorrect' ) ;
259
260
// Verify that password, passphrase and private key are hidden for SSH option
260
- await t . expect ( myRedisDatabasePage . AddRedisDatabase . sshPasswordInput . value ) . eql ( '************' , 'SSH password import incorrect' ) ;
261
+ await t . expect ( myRedisDatabasePage . AddRedisDatabase . sshPasswordInput . value ) . eql ( hiddenPassword , 'SSH password import incorrect' ) ;
261
262
262
263
await databaseHelper . clickOnEditDatabaseByName ( racompListOfSSHDB [ 1 ] . name ) ;
263
264
// Verify that user can import the SSH Private Key both by its value specified in the file and by the file path
264
- await t . expect ( myRedisDatabasePage . AddRedisDatabase . sshPrivateKeyInput . textContent ) . contains ( '************' , 'SSH Private key import incorrect' ) ;
265
+ await t . expect ( myRedisDatabasePage . AddRedisDatabase . sshPrivateKeyInput . textContent ) . contains ( hiddenPassword , 'SSH Private key import incorrect' ) ;
265
266
// Verify that user can import the SSH parameters with Passcode
266
- await t . expect ( myRedisDatabasePage . AddRedisDatabase . sshPassphraseInput . value ) . eql ( '************' , 'SSH Passphrase import incorrect' ) ;
267
+ await t . expect ( myRedisDatabasePage . AddRedisDatabase . sshPassphraseInput . value ) . eql ( hiddenPassword , 'SSH Passphrase import incorrect' ) ;
267
268
} ) ;
0 commit comments