From c74989f9730ab1a78554029a2542dc035a67abee Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Tue, 5 Nov 2024 16:19:29 +0100 Subject: [PATCH 1/2] Add 'experimental' placeholder to the passprase --- .../SshKeys/AddModal/Form/SshPassphrase/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/index.tsx b/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/index.tsx index 6c58858c6..bd5847db1 100644 --- a/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/index.tsx +++ b/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/index.tsx @@ -42,7 +42,7 @@ export class SshPassphrase extends React.Component { this.onChange(passphrase)} type="password" /> From 14bfb6d1c6f0390a61387716e469f4115d52348d Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Tue, 5 Nov 2024 17:04:31 +0100 Subject: [PATCH 2/2] fixup! tests Signed-off-by: Ilya Buziuk --- .../SshPassphrase/__tests__/__snapshots__/index.spec.tsx.snap | 2 +- .../AddModal/Form/SshPassphrase/__tests__/index.spec.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/__tests__/__snapshots__/index.spec.tsx.snap b/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/__tests__/__snapshots__/index.spec.tsx.snap index 36151634b..98cba88c5 100644 --- a/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/__tests__/__snapshots__/index.spec.tsx.snap +++ b/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/__tests__/__snapshots__/index.spec.tsx.snap @@ -37,7 +37,7 @@ exports[`SshPassphrase snapshot 1`] = ` onBlur={[Function]} onChange={[Function]} onFocus={[Function]} - placeholder="Enter passphrase (optional)" + placeholder="Enter passphrase (experimental)" required={false} type="password" /> diff --git a/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/__tests__/index.spec.tsx b/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/__tests__/index.spec.tsx index 68eca8279..4d716a9df 100644 --- a/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/__tests__/index.spec.tsx +++ b/packages/dashboard-frontend/src/pages/UserPreferences/SshKeys/AddModal/Form/SshPassphrase/__tests__/index.spec.tsx @@ -39,7 +39,7 @@ describe('SshPassphrase', () => { expect(mockOnChange).not.toHaveBeenCalled(); - const input = screen.getByPlaceholderText('Enter passphrase (optional)'); + const input = screen.getByPlaceholderText('Enter passphrase (experimental)'); const passphrase = 'passphrase'; await userEvent.click(input); await userEvent.paste(passphrase); @@ -52,7 +52,7 @@ describe('SshPassphrase', () => { expect(mockOnChange).not.toHaveBeenCalled(); - const input = screen.getByPlaceholderText('Enter passphrase (optional)'); + const input = screen.getByPlaceholderText('Enter passphrase (experimental)'); // fill the SSH key data field await userEvent.click(input);