Skip to content

test(playwright): flip description-mermaid pin to expect .svg-viewer wrap#220

Merged
avrabe merged 1 commit intomainfrom
fix/rendering-invariants-description-mermaid-wrapped
Apr 26, 2026
Merged

test(playwright): flip description-mermaid pin to expect .svg-viewer wrap#220
avrabe merged 1 commit intomainfrom
fix/rendering-invariants-description-mermaid-wrapped

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Apr 26, 2026

PR #215 pinned description-mermaid as unwrapped; PR #217 then wrapped it. Test now reflects current (wrapped) behavior. Resolves the only remaining Playwright failure on main.

…wrap

PR #215 (rendering-invariants.spec.ts) was authored before PR #217
(remaining Playwright fixes) and pinned the asymmetry:
"description-mermaid is NOT wrapped in .svg-viewer (only diagram:
field is)". PR #217 then closed that asymmetry — render/artifacts.rs
now wraps description-mermaid in the same .svg-viewer container as
the diagram: field.

After both PRs landed on main, rendering-invariants.spec.ts:150 fails
because main now wraps the mermaid that the test asserted is unwrapped.

Flip the assertion to pin the new wrapped behavior (parity between
description and diagram-field rendering). If a future change un-wraps,
this assertion forces the change to be intentional.

Trace: skip
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 9508fa7 Previous: a3ce780 Ratio
traceability_matrix/1000 64626 ns/iter (± 302) 44326 ns/iter (± 145) 1.46

This comment was automatically generated by workflow using github-action-benchmark.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 3cdb942 into main Apr 26, 2026
23 of 27 checks passed
@avrabe avrabe deleted the fix/rendering-invariants-description-mermaid-wrapped branch April 26, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant