test: wait for recovery state persistence

This commit is contained in:
Amruth Pillai
2026-09-07 23:06:19 +02:00
parent 4f60856706
commit 614a1ff9df
+7 -2
View File
@@ -184,9 +184,14 @@ test("recovers hidden printable sections without changing authored placement", a
await page.getByRole("button", { name: "Redo", exact: true }).click();
await expect(page.getByRole("button", { name: "Show Recovery Custom section" })).toHaveCount(0);
const saved = waitForResumeSave(page);
await page.getByRole("button", { name: "Undo", exact: true }).click();
await saved;
await expect
.poll(
async () =>
(await readRecoveryState(resumeId)).customSections.find((section) => section.title === "Recovery Custom")
?.hidden,
)
.toBe(true);
await openResumeCardMenu(page, resumeName);
const locked = page.waitForResponse((response) => (response.request().postData() ?? "").includes('"isLocked":true'));
await page.getByRole("menuitem", { name: "Lock" }).click();