Add 14 new dashboard E2E tests for data panel, nutrition, and accessibility
All checks were successful
Deploy / deploy (push) Successful in 2m39s

- Added 8 data panel tests: HRV status, Body Battery, cycle day format,
  current phase, intensity minutes, phase limit, remaining minutes
- Added 4 nutrition panel tests: seed cycling, carb range, keto guidance,
  nutrition section header
- Added 4 accessibility tests: main landmark, skip navigation link,
  keyboard accessible overrides, focus indicators

Total dashboard E2E coverage: 24 tests (up from 10)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-13 17:43:56 +00:00
parent 54b57d5160
commit f4a3f7d9fd
2 changed files with 382 additions and 4 deletions

View File

@@ -1105,7 +1105,7 @@ These items were identified during gap analysis and have been completed.
- **Files Created:**
- `e2e/smoke.spec.ts` - 3 tests for basic app functionality
- `e2e/auth.spec.ts` - 14 tests for login page, protected routes, public routes
- `e2e/dashboard.spec.ts` - 10 tests for dashboard display and overrides
- `e2e/dashboard.spec.ts` - 24 tests for dashboard display, overrides, data panels, nutrition, and accessibility (expanded from 10 tests)
- `e2e/settings.spec.ts` - 15 tests for settings and Garmin configuration
- `e2e/period-logging.spec.ts` - 9 tests for period history and API auth
- `e2e/calendar.spec.ts` - 13 tests for calendar view and ICS endpoints
@@ -1460,15 +1460,15 @@ This section outlines comprehensive e2e tests to cover the functionality describ
#### Existing Files to Extend
1. `e2e/auth.spec.ts` - +6 tests
2. `e2e/dashboard.spec.ts` - +35 tests (largest expansion)
2. `e2e/dashboard.spec.ts` - +35 tests (+14 completed, +21 remaining)
3. `e2e/period-logging.spec.ts` - +5 tests
4. `e2e/calendar.spec.ts` - +13 tests
5. `e2e/settings.spec.ts` - +6 tests
6. `e2e/garmin.spec.ts` - +9 tests
#### Total Test Count
- **Current E2E tests**: 100 tests (UPDATED: 36 new tests added across 5 new files)
- **New tests needed**: ~116 tests
- **Current E2E tests**: 114 tests (UPDATED: 36 new tests + 14 dashboard expansion)
- **New tests needed**: ~102 tests
- **Across 15 test files** (7 existing + 8 new)
#### Priority Order for Implementation
@@ -1509,3 +1509,4 @@ This section outlines comprehensive e2e tests to cover the functionality describ
16. **Component Tests:** P3.11 COMPLETE - All 5 dashboard and calendar components now have comprehensive unit tests (90 tests total)
17. **Gap Analysis (2026-01-12):** Verified 977 tests across 50 files + 64 E2E tests across 6 files. All API routes (21), pages (8), components, and lib files (12) have tests. P0-P5 complete. Project is feature complete.
18. **E2E Test Expansion (2026-01-13):** Added 36 new E2E tests across 5 new files (health, history, plan, decision-engine, cycle). Total E2E coverage now 100 tests across 12 files.
19. **E2E Test Expansion (2026-01-13):** Added 14 new E2E tests to dashboard.spec.ts (8 data panel tests, 4 nutrition panel tests, 4 accessibility tests). Total dashboard E2E coverage now 24 tests.