1
- import { t , Selector } from 'testcafe' ;
1
+ import { t , Selector } from 'testcafe' ;
2
2
3
3
export class AddRedisDatabasePage {
4
4
//-------------------------------------------------------------------------------------------
@@ -58,13 +58,13 @@ export class AddRedisDatabasePage {
58
58
buildFromDocker = Selector ( 'a' ) . withExactText ( 'Docker' ) ;
59
59
buildFromHomebrew = Selector ( 'a' ) . withExactText ( 'Homebrew' ) ;
60
60
// DROPDOWNS
61
- caCertField = Selector ( '[data-testid=select-ca-cert]' , { timeout : 500 } ) ;
62
- clientCertField = Selector ( '[data-testid=select-cert]' , { timeout : 500 } ) ;
61
+ caCertField = Selector ( '[data-testid=select-ca-cert]' , { timeout : 500 } ) ;
62
+ clientCertField = Selector ( '[data-testid=select-cert]' , { timeout : 500 } ) ;
63
63
// CHECKBOXES
64
- useSSHCheckbox = Selector ( '[data-testid=use-ssh]~div' , { timeout : 500 } ) ;
64
+ useSSHCheckbox = Selector ( '[data-testid=use-ssh]~div' , { timeout : 500 } ) ;
65
65
// RADIO BUTTONS
66
- sshPasswordRadioBtn = Selector ( '#password~div' , { timeout : 500 } ) ;
67
- sshPrivateKeyRadioBtn = Selector ( '#privateKey~div' , { timeout : 500 } ) ;
66
+ sshPasswordRadioBtn = Selector ( '#password~div' , { timeout : 500 } ) ;
67
+ sshPrivateKeyRadioBtn = Selector ( '#privateKey~div' , { timeout : 500 } ) ;
68
68
69
69
/**
70
70
* Adding a new redis database
@@ -108,11 +108,11 @@ export class AddRedisDatabasePage {
108
108
}
109
109
// Enter logical index
110
110
await t . click ( this . databaseIndexCheckbox ) ;
111
- await t . typeText ( this . databaseIndexInput , index , { replace : true , paste : true } ) ;
111
+ await t . typeText ( this . databaseIndexInput , index , { replace : true , paste : true } ) ;
112
112
// Click for saving
113
113
await t . click ( this . addRedisDatabaseButton ) ;
114
114
}
115
-
115
+
116
116
/**
117
117
* Adding a new standalone database with SSH
118
118
* @param databaseParameters the parameters of the database
@@ -140,18 +140,18 @@ export class AddRedisDatabasePage {
140
140
. typeText ( this . sshPortInput , sshParameters . sshPort , { replace : true , paste : true } )
141
141
. typeText ( this . sshUsernameInput , sshParameters . sshUsername , { replace : true , paste : true } ) ;
142
142
if ( ! ! sshParameters . sshPassword ) {
143
- await t . typeText ( this . sshPasswordInput , sshParameters . sshPassword , { replace : true , paste : true } ) ;
143
+ await t . typeText ( this . sshPasswordInput , sshParameters . sshPassword , { replace : true , paste : true } ) ;
144
144
}
145
145
if ( ! ! sshParameters . sshPrivateKey ) {
146
146
await t
147
- . click ( this . sshPrivateKeyRadioBtn )
148
- . typeText ( this . sshPrivateKeyInput , sshParameters . sshPrivateKey , { replace : true , paste : true } ) ;
147
+ . click ( this . sshPrivateKeyRadioBtn )
148
+ . typeText ( this . sshPrivateKeyInput , sshParameters . sshPrivateKey , { replace : true , paste : true } ) ;
149
149
}
150
150
if ( ! ! sshParameters . sshPassphrase ) {
151
151
await t
152
- . click ( this . sshPrivateKeyRadioBtn )
153
- . typeText ( this . sshPrivateKeyInput , sshParameters . sshPrivateKey ! , { replace : true , paste : true } )
154
- . typeText ( this . sshPassphraseInput , sshParameters . sshPassphrase , { replace : true , paste : true } ) ;
152
+ . click ( this . sshPrivateKeyRadioBtn )
153
+ . typeText ( this . sshPrivateKeyInput , sshParameters . sshPrivateKey ! , { replace : true , paste : true } )
154
+ . typeText ( this . sshPassphraseInput , sshParameters . sshPassphrase , { replace : true , paste : true } ) ;
155
155
}
156
156
// Click for saving
157
157
await t . click ( this . addRedisDatabaseButton ) ;
@@ -249,7 +249,7 @@ export type AddNewDatabaseParameters = {
249
249
name ?: string ,
250
250
certificate ?: string ,
251
251
key ?: string
252
- } ,
252
+ }
253
253
} ;
254
254
255
255
/**
@@ -265,7 +265,7 @@ export type SentinelParameters = {
265
265
alias ?: string ,
266
266
db ?: string ,
267
267
name ?: string ,
268
- password ?: string ,
268
+ password ?: string
269
269
} [ ] ,
270
270
sentinelPassword ?: string ,
271
271
name ?: string [ ]
0 commit comments