Skip to content

Commit 59aeb58

Browse files
committed
✅ Fix tests
1 parent 8bac441 commit 59aeb58

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/components/UserSettings/ChangePassword.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)