Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/diagrams/export-svg.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ test('export keeps the tspan space and applies tokens and drops the viewer layer
const r = spawnSync(process.execPath, [script, 'export', html, out, 'light', 'T', 'D'], { encoding: 'utf8' });
assert.equal(r.status, 0, r.stderr);
const svg = readFileSync(out, 'utf8');
// The rectangle bounds the text, so font metrics do not affect this crop.
const expected = '<svg viewBox="12 12 176 116" xmlns="http://www.w3.org/2000/svg" role="img" lang="de" width="176" height="116" aria-labelledby="t d">'
+ '<title id="t">T</title><desc id="d">D</desc>'
+ '<rect x="12" y="12" width="176" height="116" rx="20" fill="#E9EDF3"/>'
+ '<g><rect x="40" y="40" width="120" height="60" style="fill:#E3EAF8;stroke:#1F57D6;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter"/>'
+ '<text x="50" y="70" style="fill:#000000;font-family:Geist, Inter, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:16px;font-weight:400;text-anchor:start"> '
+ '<tspan style="fill:#000000;font-family:Geist, Inter, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:16px;font-weight:400;text-anchor:start">Hello</tspan> '
+ '<tspan style="fill:#000000;font-family:Geist, Inter, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:16px;font-weight:400;text-anchor:start">World</tspan>'
+ '</text></g></svg>';
assert.equal(svg, expected);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reconcile FU-1015 in the canonical plan

This assertion completes the R1581-K3 follow-up, but at the reviewed head docs/PLAN.md:365 still describes all FU-1015 items as “Geplant: nicht disponiert” and does not record this dispatched, implemented package. Update or split that row in this change so the canonical plan states the post-merge status rather than deliberately leaving reconciliation to Root afterward.

AGENTS.md reference: AGENTS.md:L139-L139

Useful? React with 👍 / 👎.

assert.ok(svg.includes('>Hello</tspan> <tspan'), 'exactly one space between the tspans'); // R1498-G6
assert.ok(!svg.includes('\n') && !svg.includes(' '), 'no newline and no run of spaces left'); // R1523-G1
assert.match(svg, /fill:#E3EAF8;stroke:#1F57D6/i); // light backend token pair
Expand Down
Loading