From 5df8816b3aa474e04c689585aee7eb471559b88d Mon Sep 17 00:00:00 2001 From: vargajoe Date: Wed, 18 Oct 2023 12:04:33 +0200 Subject: [PATCH 1/2] adjust pasword title style --- packages/sn-controls-react/src/fieldcontrols/password.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/sn-controls-react/src/fieldcontrols/password.tsx b/packages/sn-controls-react/src/fieldcontrols/password.tsx index c9bcb87d1..531d44133 100644 --- a/packages/sn-controls-react/src/fieldcontrols/password.tsx +++ b/packages/sn-controls-react/src/fieldcontrols/password.tsx @@ -48,13 +48,14 @@ export const Password: React.FC = (props) => { case 'new': return ( - {props.settings.DisplayName} + + {props.settings.DisplayName} + Date: Mon, 6 Nov 2023 13:04:46 +0100 Subject: [PATCH 2/2] update test of password field --- .../sn-controls-react/test/__snapshots__/password.test.tsx.snap | 2 +- packages/sn-controls-react/test/password.test.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/sn-controls-react/test/__snapshots__/password.test.tsx.snap b/packages/sn-controls-react/test/__snapshots__/password.test.tsx.snap index e666a8fdd..f80d34d63 100644 --- a/packages/sn-controls-react/test/__snapshots__/password.test.tsx.snap +++ b/packages/sn-controls-react/test/__snapshots__/password.test.tsx.snap @@ -7,6 +7,7 @@ exports[`Password field control should set all the props 1`] = ` > Password @@ -31,7 +32,6 @@ exports[`Password field control should set all the props 1`] = ` id="Password" name="Password" onChange={[Function]} - placeholder="Password" required={true} type="password" value="" diff --git a/packages/sn-controls-react/test/password.test.tsx b/packages/sn-controls-react/test/password.test.tsx index b2aac2752..be362f403 100644 --- a/packages/sn-controls-react/test/password.test.tsx +++ b/packages/sn-controls-react/test/password.test.tsx @@ -35,7 +35,6 @@ describe('Password field control', () => { expect(wrapper.find(InputLabel).text()).toBe(defaultSettings.DisplayName) expect(wrapper.find(Input).prop('name')).toBe(defaultSettings.Name) expect(wrapper.find(Input).prop('id')).toBe(defaultSettings.Name) - expect(wrapper.find(Input).prop('placeholder')).toBe(defaultSettings.DisplayName) expect(wrapper.find(Input).prop('required')).toBeTruthy() expect(wrapper.find(Input).prop('disabled')).toBeTruthy() expect(wrapper.find(FormHelperText).text()).toBe(defaultSettings.Description)