Skip to content

Commit 3df175e

Browse files
authored
Merge pull request #2693 from RedisInsight/fe/feature/RI_4481_replace_hide_symbol
#RI-4481 - change hide symbol
2 parents 00e000c + f982587 commit 3df175e

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SECURITY_FIELD = '************'
1+
export const SECURITY_FIELD = '••••••••••••'

redisinsight/ui/src/pages/home/components/AddInstanceForm/InstanceForm/InstanceForm.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,9 +1153,9 @@ describe('InstanceForm', () => {
11531153
/>
11541154
)
11551155

1156-
expect(screen.getByTestId('password')).toHaveAttribute('value', '************')
1156+
expect(screen.getByTestId('password')).toHaveAttribute('value', '••••••••••••')
11571157
expect(screen.getByTestId('password')).toHaveAttribute('type', 'password')
1158-
expect(screen.getByTestId('sshPassphrase')).toHaveAttribute('value', '************')
1158+
expect(screen.getByTestId('sshPassphrase')).toHaveAttribute('value', '••••••••••••')
11591159
expect(screen.getByTestId('sshPassphrase')).toHaveAttribute('type', 'password')
11601160

11611161
fireEvent.focus(screen.getByTestId('password'))
@@ -1179,7 +1179,7 @@ describe('InstanceForm', () => {
11791179
/>
11801180
)
11811181

1182-
expect(screen.getByTestId('sshPassword')).toHaveAttribute('value', '************')
1182+
expect(screen.getByTestId('sshPassword')).toHaveAttribute('value', '••••••••••••')
11831183
expect(screen.getByTestId('sshPassword')).toHaveAttribute('type', 'password')
11841184

11851185
fireEvent.focus(screen.getByTestId('sshPassword'))

redisinsight/ui/src/pages/home/components/AddInstanceForm/InstanceForm/form-components/SSHDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const SSHDetails = (props: Props) => {
205205
className="passwordField"
206206
maxLength={50_000}
207207
placeholder="Enter SSH Private Key in PEM format"
208-
value={formik.values.sshPrivateKey === true ? SECURITY_FIELD : formik?.values?.sshPrivateKey?.replace(/./g, '*') ?? ''}
208+
value={formik.values.sshPrivateKey === true ? SECURITY_FIELD : formik?.values?.sshPrivateKey?.replace(/./g, '') ?? ''}
209209
onChange={formik.handleChange}
210210
onFocus={() => {
211211
if (formik.values.sshPrivateKey === true) {

tests/e2e/tests/electron/critical-path/database/add-ssh-db.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fixture `Adding database with SSH`
4343
await databaseAPIRequests.deleteStandaloneDatabasesByNamesApi([sshDbPass.databaseName, sshDbPrivateKey.databaseName, sshDbPasscode.databaseName, newClonedDatabaseAlias]);
4444
});
4545
test('Adding database with SSH', async t => {
46-
const hiddenPass = '************';
46+
const hiddenPass = '••••••••••••';
4747
const sshWithPass = {
4848
...sshParams,
4949
sshPassword: 'pass'

tests/e2e/tests/web/critical-path/database/clone-databases.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ test
100100
await myRedisDatabasePage.reloadPage();
101101
})
102102
.meta({ rte: rte.sentinel })('Verify that user can clone Sentinel', async t => {
103-
const hiddenPassword = '************';
103+
const hiddenPassword = '••••••••••••';
104104

105105
await databaseHelper.clickOnEditDatabaseByName(ossSentinelConfig.masters[1].alias);
106106
await t.click(myRedisDatabasePage.AddRedisDatabase.cloneDatabaseButton);

tests/e2e/tests/web/critical-path/database/connecting-to-the-db.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ test
8989
// Delete databases
9090
await databaseAPIRequests.deleteStandaloneDatabasesByNamesApi([sshDbPass.databaseName, sshDbPrivateKey.databaseName, sshDbPasscode.databaseName, newClonedDatabaseAlias]);
9191
})('Adding database with SSH', async t => {
92-
const hiddenPass = '************';
92+
const hiddenPass = '••••••••••••';
9393
// const tooltipText = [
9494
// 'Enter a value for required fields (3):',
9595
// 'SSH Host',

tests/e2e/tests/web/critical-path/database/import-databases.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const dbData = [
7676
}
7777
];
7878
const findImportedRdmDbNameInList = async(dbName: string): Promise<string> => rdmData.dbImportedNames.find(item => item === dbName)!;
79-
const hiddenPassword = '************';
79+
const hiddenPassword = '••••••••••••';
8080

8181
fixture `Import databases`
8282
.meta({ type: 'critical_path', rte: rte.none })

0 commit comments

Comments
 (0)