Add Reset Password e2e tests (#1270)

This commit is contained in:
Alejandra
2024-07-30 09:09:57 -05:00
committed by GitHub
parent 68b86b157f
commit 1e9e561e5f
5 changed files with 222 additions and 2 deletions

View File

@@ -34,7 +34,11 @@ const useAuth = () => {
onSuccess: () => {
navigate({ to: "/login" })
showToast("Success!", "User created successfully.", "success")
showToast(
"Account created.",
"Your account has been created successfully.",
"success",
)
},
onError: (err: ApiError) => {
let errDetail = (err.body as any)?.detail

View File

@@ -60,7 +60,7 @@ function ResetPassword() {
const mutation = useMutation({
mutationFn: resetPassword,
onSuccess: () => {
showToast("Success!", "Password updated.", "success")
showToast("Success!", "Password updated successfully.", "success")
reset()
navigate({ to: "/login" })
},