Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions e2e/full/profile-settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ import { loginAs } from "../support/actions";
import { TEST_USERS } from "../support/constants";

test.describe("Profile Settings", () => {
test("should display user email in settings", async ({ page }, testInfo) => {
await loginAs(page, testInfo, TEST_USERS.member);
await page.goto("/settings");

const profileForm = page.getByTestId("profile-form");
const emailInput = profileForm.getByLabel("Email");

// Verify the email field displays the logged-in user's email
await expect(emailInput).toHaveValue(TEST_USERS.member.email);
// Verify it's disabled (read-only)
await expect(emailInput).toBeDisabled();
});

test("should update profile and handle cancel", async ({
page,
}, testInfo) => {
Expand Down
Loading