Files
Reactive-Resume/tests/e2e/specs/resume-lifecycle.spec.ts
Cursor Agent 18b3ba1cfb test: stabilize e2e suite
Co-authored-by: Amruth Pillai <im.amruth@gmail.com>
2026-06-20 04:24:31 +00:00

19 lines
754 B
TypeScript

import { createSampleResumeFromDashboard, openSidebarSection } from "../fixtures/resume";
import { expect, test } from "../fixtures/test";
test("creates a sample resume and persists a basics edit", async ({ authPage: page }, testInfo) => {
await createSampleResumeFromDashboard(page, testInfo);
const updatedName = `E2E Edited ${Date.now()}`;
await openSidebarSection(page, "Basics");
const savePromise = page.waitForResponse(
(response) => response.url().includes("/api/rpc") && response.request().method() === "POST" && response.ok(),
);
await page.getByLabel("Name").fill(updatedName);
await savePromise;
await page.reload();
await openSidebarSection(page, "Basics");
await expect(page.getByLabel("Name")).toHaveValue(updatedName);
});