Files
Reactive-Resume/tests/e2e/specs/settings-profile.spec.ts
T
Amruth Pillai 0ba44865c7 test: add e2e specs for dashboard, sections, templates, sharing and settings workflows
- dashboard-lifecycle: rename, duplicate, delete via card context menu
- section-editing: add experience item, verify persistence across reloads
- template-switch: switch template in gallery, verify persisted selection
- sharing-password: password-protect public link, unlock as anonymous visitor
- lock-resume: lock blocks update/delete, unlock restores them
- settings-profile: profile name change persists
2026-07-03 20:04:36 +02:00

16 lines
633 B
TypeScript

import { expect, test } from "../fixtures/test";
test("updates the profile name from settings and persists it", async ({ authPage: page }) => {
await page.goto("/dashboard/settings/profile");
const updatedName = `E2E Renamed ${Date.now()}`;
const nameField = page.getByLabel("Name", { exact: true });
await expect(nameField).toBeVisible();
await nameField.fill(updatedName);
await page.getByRole("button", { name: "Save Changes" }).click();
// The save round-trips through the API; a reload must show the new value
await page.reload();
await expect(page.getByLabel("Name", { exact: true })).toHaveValue(updatedName);
});