A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
test: wait for recovery state persistence
Amruth Pillai614a1ff9dff3
diff --git a/tests/e2e/specs/section-recovery.spec.ts b/tests/e2e/specs/section-recovery.spec.tsindex 0b5a26e10..bbfa44daf 100644--- a/tests/e2e/specs/section-recovery.spec.ts+++ b/tests/e2e/specs/section-recovery.spec.ts@@ -184,9 +184,14 @@ test("recovers hidden printable sections without changing authored placement", aawait 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();