From 73c694e308176a992bf8552183bda7ecc7114eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 9 Jul 2026 16:45:02 +0200 Subject: [PATCH] test(documents): drop the retired not-saved note assertion from the summary e2e MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The per-view 'not saved · not a diagnosis' note was removed from the document summary panel; the e2e no longer asserts it, keeping the transient/discard contract. --- e2e/documents-ai.spec.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/e2e/documents-ai.spec.ts b/e2e/documents-ai.spec.ts index e8f104b88..44170a542 100644 --- a/e2e/documents-ai.spec.ts +++ b/e2e/documents-ai.spec.ts @@ -196,9 +196,7 @@ test.describe("document vault — AI assist + content search", () => { // ── (b) Session-only summary: transient, note present, closing discards ── - test("summary panel is transient and labelled not-saved / not-a-diagnosis", async ({ - page, - }) => { + test("summary panel is transient and discards on close", async ({ page }) => { await mockAiEnabled(page, { mode: "vision" }); const summaryText = "A chest imaging report issued by a radiology clinic."; let summaryCalls = 0; @@ -221,11 +219,6 @@ test.describe("document vault — AI assist + content search", () => { const panel = sheet.locator('[data-slot="document-summary-panel"]'); await expect(panel).toBeVisible(); await expect(panel.getByText(summaryText)).toBeVisible(); - await expect( - panel.getByText( - "Not saved · not a diagnosis. Shown once for this view only.", - ), - ).toBeVisible(); expect(summaryCalls).toBe(1); // Closing discards — the panel is gone and nothing lingers.