88 lines
2.0 KiB
Markdown
88 lines
2.0 KiB
Markdown
|
|
# Test Archive
|
||
|
|
|
||
|
|
This directory contains legacy tests that were valuable during development but have been superseded by the systematic test suite in `/tests/mjs/`.
|
||
|
|
|
||
|
|
**⚠️ DO NOT DELETE THESE TESTS** - They contain historical bug fixes and edge cases that may be valuable for future reference.
|
||
|
|
|
||
|
|
## Directory Structure
|
||
|
|
|
||
|
|
### toggles/
|
||
|
|
Tests for toggle functionality (length, icons, theme)
|
||
|
|
- Historical toggle implementations
|
||
|
|
- Toggle synchronization tests
|
||
|
|
- Specific toggle bug fixes
|
||
|
|
|
||
|
|
### zoom/
|
||
|
|
Zoom control functionality tests
|
||
|
|
- Zoom slider tests
|
||
|
|
- Zoom persistence tests
|
||
|
|
- Zoom rendering tests
|
||
|
|
|
||
|
|
### hyperscript/
|
||
|
|
Hyperscript-specific tests
|
||
|
|
- Parse error tests
|
||
|
|
- Function definition tests
|
||
|
|
- Hyperscript syntax validation
|
||
|
|
|
||
|
|
### htmx/
|
||
|
|
HTMX functionality tests
|
||
|
|
- HTMX swap tests
|
||
|
|
- Indicator tests
|
||
|
|
- Atomic update tests
|
||
|
|
- Request/response cycle tests
|
||
|
|
|
||
|
|
### keyboard/
|
||
|
|
Keyboard shortcut tests
|
||
|
|
- Individual key tests
|
||
|
|
- Shortcut combinations
|
||
|
|
- Input field detection
|
||
|
|
|
||
|
|
### language/
|
||
|
|
Language switching tests
|
||
|
|
- English/Spanish toggle
|
||
|
|
- URL parameter tests
|
||
|
|
- Language persistence
|
||
|
|
|
||
|
|
### visual/
|
||
|
|
Visual regression and rendering tests
|
||
|
|
- Screenshot comparisons
|
||
|
|
- CSS rendering tests
|
||
|
|
- Responsive design tests
|
||
|
|
|
||
|
|
### performance/
|
||
|
|
Performance and load tests
|
||
|
|
- Load time tests
|
||
|
|
- Core Web Vitals
|
||
|
|
- Bundle size tests
|
||
|
|
|
||
|
|
### integration/
|
||
|
|
Full integration and E2E tests
|
||
|
|
- Complete feature tests
|
||
|
|
- Multi-step workflows
|
||
|
|
- Comprehensive validation
|
||
|
|
|
||
|
|
### misc/
|
||
|
|
Miscellaneous tests that don't fit other categories
|
||
|
|
- Experimental tests
|
||
|
|
- One-off bug reproductions
|
||
|
|
- Debug utilities
|
||
|
|
|
||
|
|
## Using Archived Tests
|
||
|
|
|
||
|
|
These tests can still be run individually if needed:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Run a specific archived test
|
||
|
|
bun tests/archive/toggles/test-toggle-sync.mjs
|
||
|
|
|
||
|
|
# Run all tests in a category
|
||
|
|
for test in tests/archive/toggles/*.mjs; do bun "$test"; done
|
||
|
|
```
|
||
|
|
|
||
|
|
## Migration Notes
|
||
|
|
|
||
|
|
- **Date Archived**: 2025-11-17
|
||
|
|
- **Reason**: Consolidation into systematic numbered test suite
|
||
|
|
- **Active Tests**: See `/tests/mjs/` for current test suite
|
||
|
|
- **Test Count**: ~60 legacy tests archived
|