Repository navigation
ci(fix): let the visual-baselines workflow mint template baselines - #616
Conversation
The `template-visual` spec choice, added when #554 turned the free-text input into a choice list, never matched tests/e2e/templates-visual.e2e.spec.ts. Playwright reads a positional argument as a file-path regex, so `spec=template-visual` failed with "No tests found" and `all-visual` silently minted only the component and blog baselines, never the 150 template ones. Rename the choice to `templates-visual` and update both case arms, keeping the validated argv array. Rewrite the header comment, which named only blog-visual and still described committed darwin baselines and a 38-component suite. The release-gate int spec now pins the new name and checks that every choice names a real e2e spec and that all-visual covers every *-visual spec. CONTRIBUTING.md says which spec to pick. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The suite selections route to the available tests, and all-visual includes all three visual suites. No outstanding issue is evident; the PR appears mergeable after normal checks. Pre-merge checks |
|
What
visual-baselines.yml: thetemplate-visualspec choice becomestemplates-visual, bothcasearms are updated, and the validated argv array is kept. The header comment is rewritten; it named onlyblog-visualand still described committed darwin baselines and a 38-component suite.tests/int/release-gate.int.spec.ts: pins the new name, checks that every choice names a real e2e spec, and checks thatall-visualcovers every*-visualspec.CONTRIBUTING.md: says which spec to pick.Why
When #554 turned the free-text
specinput into a choice list, thetemplate-visualchoice never matchedtests/e2e/templates-visual.e2e.spec.ts. Playwright reads a positional argument as a file-path regex, sospec=template-visualfailed with "No tests found". Worse,all-visualsilently minted only the component and blog baselines and never the 150 template ones. Template baselines therefore couldn't be minted through the workflow at all. That surfaced during the Datasheet rebrand (#604).Verification
Rebased onto current
main.tests/int/release-gate.int.spec.tspasses 12/12, and Prettier is clean.No issue closed.
🤖 Generated with Claude Code
Summary by CodeRabbit