From b0f64a573447cf26ccd699223e74148d4416ac78 Mon Sep 17 00:00:00 2001 From: Ralf Anton Beier Date: Sat, 25 Apr 2026 22:31:29 +0200 Subject: [PATCH] fix(tests/playwright): batch 5 stale-test cleanups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Five Playwright tests had stale assertions that diverged from the rendered output. None require a code change in rivet-cli or rivet-core — these are pure test-code fixes. - artifacts.spec.ts:49 — drop toContainText("flowchart LR") that raced mermaid.js's pre→SVG swap; keep only the SVG-presence check. - documents.spec.ts:145 — tighten heading-IDs selector from article/main h2-h4 to .doc-body h2-h4 so it doesn't match the page-chrome

{title}

that has no id by design. - rivet-delta.spec.ts:136 — tighten code-locator to :not(.language-mermaid) so it doesn't strict-mode-match both the mermaid source block and the standalone row. - rivet-delta.spec.ts:258 — page.goto("/") before setContent so