Key improvements:
1. Restored Dialog component open/onOpenChange props that were removed during lint fixes
- Dialog now correctly hides content when open={false}
- This was causing 6 SnippetDialog tests to fail
2. Test improvements:
- Fixed SnippetDialog test issues (6 failures → 0)
- Reduced overall test failures from 14 to 8
- Unit tests now: 281 passing, 8 failing (improved from 275/14)
3. Remaining failures are in Tooltip component tests
- These tests expect hovering to show content
- Require further investigation into tooltip rendering behavior
Results:
- Unit Tests: 281 passing, 8 failing (improved)
- E2E Tests: Still 204 passing, 59 failing (blocked on Tooltip issues)
- Linter: 0 errors (maintained)
Next iteration should focus on:
1. Tooltip component rendering and show/hide behavior
2. E2E test failures analysis
3. Further component fixes
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Implemented tests for various MD3 components including buttons, text fields, dialogs, navigation, menus, progress indicators, and responsive design.
- Created utility functions to interact with MD3 components, check their states, and validate accessibility attributes.
- Added support for keyboard navigation testing and touch target size validation.
- Introduced schema-based component definitions to streamline test implementations.
- Implemented functionality tests covering page navigation, header behavior, form handling, and error management.
- Created mobile-responsive tests to ensure touch interactions, viewport adaptability, and safe area respect.
- Developed visual regression tests for home page layout, typography, color consistency, and interactive elements.
- Added a test runner script for easier execution of E2E tests with various options.