Skip to content

fix(serve): graceful WASM fallback + asset loading regression tests#48

Merged
avrabe merged 1 commit intomainfrom
fix/wasm-graceful-asset-regression-tests
Mar 19, 2026
Merged

fix(serve): graceful WASM fallback + asset loading regression tests#48
avrabe merged 1 commit intomainfrom
fix/wasm-graceful-asset-regression-tests

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 19, 2026

Summary

  • AADL WASM renderer does HEAD probe before import() — fails silently with user-visible fallback instead of console error spam
  • 9 new regression tests in asset-loading.spec.ts covering all recent asset bugs

Test plan

  • 88/88 Playwright tests pass locally
  • CI Playwright (first run with new tests)

🤖 Generated with Claude Code

1. AADL WASM renderer now does a HEAD probe before import() so it fails
   silently with a user-visible message instead of spamming uncaught
   SyntaxError/TypeError in the console.

2. New asset-loading.spec.ts with 9 regression tests:
   - htmx.js and mermaid.js return JS (not HTML-wrapped)
   - No JS errors on page load or navigation
   - CSP allows inline styles and data: fonts
   - No blocked font requests
   - AADL diagram shows fallback when WASM unavailable
   - Mermaid renders without errors
   - Nav links navigate correctly (no /#)

88/88 Playwright tests pass.

Fixes: FEAT-001
Refs: SSC-4

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@avrabe avrabe merged commit 992db43 into main Mar 19, 2026
@avrabe avrabe deleted the fix/wasm-graceful-asset-regression-tests branch March 19, 2026 20:13
@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