Add 5 new Garmin E2E tests for expiry warnings and lifecycle
All checks were successful
Deploy / deploy (push) Successful in 1m39s

New tests:
- Yellow warning banner when token expires in 10 days (warning level)
- Red critical banner when token expires in 5 days (critical level)
- Expired token state shows token input for re-entry
- Connection persists after page reload
- Can reconnect after disconnecting

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-13 18:20:42 +00:00
parent b3c711b9af
commit 5bfe51d630
2 changed files with 185 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ This file is maintained by Ralph. Run `./ralph-sandbox.sh plan 3` to generate ta
## Current Status: Feature Complete
**Test Coverage:** 1014 unit tests (51 files) + 165 E2E tests (12 files) = 1179 total tests
**Test Coverage:** 1014 unit tests (51 files) + 170 E2E tests (12 files) = 1184 total tests
All P0-P5 items are complete. The project is feature complete.
@@ -104,7 +104,7 @@ All P0-P5 items are complete. The project is feature complete.
| auth.spec.ts | 14 | Login, protected routes |
| dashboard.spec.ts | 24 | Dashboard display, overrides |
| settings.spec.ts | 15 | Settings form, validation |
| garmin.spec.ts | 7 | Garmin connection |
| garmin.spec.ts | 12 | Garmin connection, expiry warnings |
| period-logging.spec.ts | 14 | Period history, logging |
| calendar.spec.ts | 21 | Calendar view, ICS feed |
| decision-engine.spec.ts | 8 | Decision priority chain |
@@ -133,7 +133,7 @@ These are optional enhancements to improve E2E coverage. Not required for featur
| period-logging.spec.ts | +5 | Future dates, dashboard updates |
| calendar.spec.ts | +13 | ICS content validation, responsive |
| settings.spec.ts | +6 | Persistence, timezone changes |
| garmin.spec.ts | +9 | Expiry warnings, token refresh |
| garmin.spec.ts | +4 | Token refresh, network error recovery |
---
@@ -150,6 +150,7 @@ These are optional enhancements to improve E2E coverage. Not required for featur
## Revision History
- 2026-01-13: Added 5 Garmin E2E tests (expiry warnings, expired state, persistence, reconnection)
- 2026-01-13: Condensed plan after feature completion (reduced from 1514 to ~170 lines)
- 2026-01-12: Fixed spec gaps (email format, HRV colors, progress bar, emojis)
- 2026-01-11: Completed P5.1-P5.4 (period history, toast, CI, E2E)