Skip to content

fix(serve): print button URL error + console error hygiene tests#51

Merged
avrabe merged 1 commit intomainfrom
fix/print-button-tests
Mar 19, 2026
Merged

fix(serve): print button URL error + console error hygiene tests#51
avrabe merged 1 commit intomainfrom
fix/print-button-tests

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 19, 2026

Summary

  • Print button new URL() replaced with string concat — no more TypeError
  • 14 new Playwright tests: print mode + console error hygiene across 9 pages
  • 102/102 Playwright tests pass

🤖 Generated with Claude Code

Print button used new URL() constructor which could fail in certain
contexts. Replaced with simple string concat (h + '?' + 'print=1').

New print-and-errors.spec.ts with 14 tests:
- 5 print mode tests (renders, button exists, no URL error, onclick works)
- 9 console error hygiene tests (/, /artifacts, /artifacts/REQ-001,
  /stpa, /graph, /documents, /validate, /stats, /matrix)

102/102 Playwright tests pass.

Fixes: FEAT-001

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@avrabe avrabe merged commit a149caf into main Mar 19, 2026
@avrabe avrabe deleted the fix/print-button-tests branch March 19, 2026 21:11
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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