Skip to content

Commit b07fe9f

Browse files
committed
✅ Fix tests
1 parent 733f834 commit b07fe9f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

frontend/src/routes/reset-password.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function ResetPassword() {
7878
mutationFn: (data: { new_password: string; token: string }) =>
7979
LoginService.resetPassword({ requestBody: data }),
8080
onSuccess: () => {
81-
showSuccessToast("Password updated successfully.")
81+
showSuccessToast("Password updated successfully")
8282
form.reset()
8383
navigate({ to: "/login" })
8484
},

frontend/tests/login.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test("Forgot Password link is visible", async ({ page }) => {
3333
await page.goto("/login")
3434

3535
await expect(
36-
page.getByRole("link", { name: "Forgot password?" }),
36+
page.getByRole("link", { name: "Forgot your password?" }),
3737
).toBeVisible()
3838
})
3939

frontend/tests/sign-up.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ test("Sign up with mismatched passwords", async ({ page }) => {
118118
await fillForm(page, fullName, email, password, password2)
119119
await page.getByRole("button", { name: "Sign Up" }).click()
120120

121-
await expect(page.getByText("Passwords do not match")).toBeVisible()
121+
await expect(page.getByText("The passwords don't match")).toBeVisible()
122122
})
123123

124124
test("Sign up with missing full name", async ({ page }) => {
@@ -144,7 +144,7 @@ test("Sign up with missing email", async ({ page }) => {
144144
await fillForm(page, fullName, email, password, password)
145145
await page.getByRole("button", { name: "Sign Up" }).click()
146146

147-
await expect(page.getByText("Email is required")).toBeVisible()
147+
await expect(page.getByText("Invalid email address")).toBeVisible()
148148
})
149149

150150
test("Sign up with missing password", async ({ page }) => {

0 commit comments

Comments
 (0)