forked from molecule-ai/molecule-core
Adds vitest tests for 4 previously untested canvas components: - Tooltip.test.tsx (17 tests): portal rendering, 400ms hover delay, keyboard focus reveal, Esc dismiss (WCAG 1.4.13), aria-describedby - Legend.test.tsx (10 tests): open/closed state, localStorage persistence, palette-offset positioning, status/tier/comm items, aria labels - TermsGate.test.tsx (14 tests): loading→accepted, pending modal (WCAG 2.4.3 focus), accept flow, error state, children always rendered - ApprovalBanner.test.tsx (15 tests): empty state, approval card render, polling cleanup, approve/deny decisions, toast notifications, error recovery Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| e2e | ||
| public | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| components.json | ||
| Dockerfile | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| playwright.staging.config.ts | ||
| postcss.config.js | ||
| tsconfig.json | ||
| vitest.config.ts | ||