From b1817aa52c604f12df3c875b53b8f4e69fa6f2be Mon Sep 17 00:00:00 2001 From: cesnimda Date: Mon, 26 Oct 2026 09:06:36 +0100 Subject: [PATCH] test(cv): follow explicit template preview application --- docs/cv-redesign/VERIFICATION.md | 4 ++++ job-tracker-ui/e2e/smoke.spec.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/cv-redesign/VERIFICATION.md b/docs/cv-redesign/VERIFICATION.md index 3c15a5d..0ace792 100644 --- a/docs/cv-redesign/VERIFICATION.md +++ b/docs/cv-redesign/VERIFICATION.md @@ -184,3 +184,7 @@ The flag failure was a product regression introduced by moving dedicated letter- Regression evidence: three failing flag cases before the fix, then 67/67 focused cases and 1,234/1,234 full Release backend cases passed with zero skips (`letter-flag-red-01`, `letter-flag-green-01`, `letter-flag-backend-full-01`). Actual guarded MariaDB 12.2.2 passed 64/64 with source hashes unchanged, no audit override, process exit 0 and positive owned-service cleanup (`provider-final-05`). Independent diff review found no material issue. The Documents fixture correction excludes only the current job's exact preview POST from the final editor-write count. Listing checks continue to forbid implicit rendering, preview and writes; exact Save body, expected revision, history and durable metadata readbacks remain asserted. Its entire original browser suite passed 10/10 (`documents-preview-fixture-01`). The unchanged JSON job-import suite passed all four cases (`import-flag-browser-01`), including the actual PascalCase export/native chooser round trip, graph/owner boundaries and uncertain-write recovery. Final aggregate, current-source Linux and native PDF acceptance remain pending. + +## 26 October: smoke template workflow alignment + +Frozen `final-08` passed 1,234 backend cases and completed ordinary shard 4 with 88 passing/one failing browser case, no skips/retries and unchanged source/runtime hashes. The smoke scenario selected Code then attempted Customize while the newly approved read-only candidate dialog was still open. Its fixture now asserts the named sample iframe, explicitly applies the template and waits for the dialog to close before continuing its original customization, theme, mobile preview and overflow checks. This changes no product behavior. The original focused Career Workspace scenario passed (`smoke-template-flow-01`, one browser case). The failed aggregate remains retained; complete successor qualification is still required. diff --git a/job-tracker-ui/e2e/smoke.spec.ts b/job-tracker-ui/e2e/smoke.spec.ts index fe5aba1..5a0aba5 100644 --- a/job-tracker-ui/e2e/smoke.spec.ts +++ b/job-tracker-ui/e2e/smoke.spec.ts @@ -380,6 +380,10 @@ test("Career Workspace loads from the authenticated application shell", async ({ await page.getByRole("tab", { name: "Template" }).click(); await page.getByRole("button").filter({ hasText: /^CodeTechnical/ }).click(); + const templatePreview = page.getByRole("dialog", { name: "Preview design ยท Code", exact: true }); + await expect(templatePreview.getByTitle("Template sample preview", { exact: true })).toBeVisible(); + await templatePreview.getByRole("button", { name: "Apply template", exact: true }).click(); + await expect(templatePreview).toHaveCount(0); await page.getByRole("tab", { name: "Customize" }).click(); await page.getByRole("button", { name: "Advanced document settings", exact: true }).click(); await page.getByLabel("Skills presentation").click();