mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-17 08:39:47 +10:00
18b3ba1cfb
Co-authored-by: Amruth Pillai <im.amruth@gmail.com>
19 lines
754 B
TypeScript
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);
|
|
});
|