test(documents): drop the retired not-saved note assertion from the summary e2e

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.
This commit is contained in:
Marc-André Bombeck committed 2026-07-09 16:45:02 +02:00
1 parent a89e511359
commit 73c694e308
1 file changed
+1 -8
+1 -8
View File
@@ -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.