File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
frontend/src/components/UserSettings Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ const ChangePassword = () => {
5555 mutationFn : ( data : UpdatePassword ) =>
5656 UsersService . updatePasswordMe ( { requestBody : data } ) ,
5757 onSuccess : ( ) => {
58- showSuccessToast ( "Password updated successfully. " )
58+ showSuccessToast ( "Password updated successfully" )
5959 form . reset ( )
6060 } ,
6161 onError : handleError . bind ( showErrorToast ) ,
@@ -81,6 +81,7 @@ const ChangePassword = () => {
8181 < FormLabel > Current Password</ FormLabel >
8282 < FormControl >
8383 < PasswordInput
84+ data-testid = "current-password-input"
8485 placeholder = "••••••••"
8586 aria-invalid = { fieldState . invalid }
8687 { ...field }
@@ -99,6 +100,7 @@ const ChangePassword = () => {
99100 < FormLabel > New Password</ FormLabel >
100101 < FormControl >
101102 < PasswordInput
103+ data-testid = "new-password-input"
102104 placeholder = "••••••••"
103105 aria-invalid = { fieldState . invalid }
104106 { ...field }
@@ -117,6 +119,7 @@ const ChangePassword = () => {
117119 < FormLabel > Confirm Password</ FormLabel >
118120 < FormControl >
119121 < PasswordInput
122+ data-testid = "confirm-password-input"
120123 placeholder = "••••••••"
121124 aria-invalid = { fieldState . invalid }
122125 { ...field }
You can’t perform that action at this time.
0 commit comments