Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1.3 KiB
Manual smoke — F7.1 intra-diagram mermaid diffing (#22)
Webview SVG rendering isn't covered by automated E2E (sealed sandbox, §6.8), so verify the rendered colors by hand once. The host-side augmentation (the styling directives injected into the mermaid source) is covered by unit + host E2E; this smoke confirms mermaid actually paints them.
-
Open a markdown doc with a flowchart:
flowchart LR A[Start] --> B[Parse] B --> C[Emit] -
Run Cowriting: Show Track-Changes Preview (
ctrl+alt+r). Pin the baseline (Cowriting: Pin Diff Baseline). -
Edit the diagram: change
B[Parse]→B[Parse+Lint], addB --> D[Validate], and delete theB --> Cedge and theC[Emit]node. -
Expect in the preview:
Boutlined amber (changed),Dgreen (added),Cshown as a faded dashed ghost (removed) with a dashed grey ghost edge, and a legendadded · changed · removedbeneath the diagram. -
Repeat with a
sequenceDiagram: add a message (greenrectband), remove one (grey ghost band, message still visible), confirm a removed participant still appears. -
Change a diagram to a
classDiagramand confirm it still shows the v1 whole-block "changed" badge (graceful fallback, INV-30) — no error, no broken render.