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} + 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)