Skip to content

Commit 2f9536d

Browse files
fix: correct email validation error message in form submission tests
1 parent b5b27b8 commit 2f9536d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/form.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ test.describe("Form Submission Tests", () => {
7777
await page.click('button[type="submit"]');
7878

7979
// Expect email validation error
80-
await expect(page.locator("#error")).toHaveText("Invalid email formats");
80+
await expect(page.locator("#error")).toHaveText("Invalid email format");
8181
});
8282

8383
test("🔄 Reset button clears the form", async ({ page }) => {

0 commit comments

Comments
 (0)