mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-13 06:24:54 +10:00
0ba44865c7
- 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
16 lines
633 B
TypeScript
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);
|
|
});
|