Skip to content

Commit 52485a6

Browse files
test(e2e): Add settings page email display verification (#908)
Verify that logged-in users see their email address in the settings page profile form, and that the email field is disabled (read-only). Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b46b1c2 commit 52485a6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

e2e/full/profile-settings.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ import { loginAs } from "../support/actions";
33
import { TEST_USERS } from "../support/constants";
44

55
test.describe("Profile Settings", () => {
6+
test("should display user email in settings", async ({ page }, testInfo) => {
7+
await loginAs(page, testInfo, TEST_USERS.member);
8+
await page.goto("/settings");
9+
10+
const profileForm = page.getByTestId("profile-form");
11+
const emailInput = profileForm.getByLabel("Email");
12+
13+
// Verify the email field displays the logged-in user's email
14+
await expect(emailInput).toHaveValue(TEST_USERS.member.email);
15+
// Verify it's disabled (read-only)
16+
await expect(emailInput).toBeDisabled();
17+
});
18+
619
test("should update profile and handle cancel", async ({
720
page,
821
}, testInfo) => {

0 commit comments

Comments
 (0)