78c658822e
Add 16 new dashboard E2E tests for comprehensive UI coverage
...
Deploy / deploy (push) Successful in 1m57s
- Decision Card tests: GENTLE/LIGHT/REDUCED status display, icon rendering
- Override behavior tests: stress forces REST, PMS forces GENTLE, persistence after refresh
- Mini Calendar tests: current month display, today highlight, phase colors, navigation
- Onboarding Banner tests: setup prompts, Garmin link, period date prompt
- Loading state tests: skeleton loaders, performance validation
Total dashboard E2E coverage now 42 tests. Overall E2E count: 129 tests across 12 files.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-13 18:00:41 +00:00
f4a3f7d9fd
Add 14 new dashboard E2E tests for data panel, nutrition, and accessibility
...
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 >
2026-01-13 17:43:56 +00:00
8c59b3bd67
Add self-contained e2e test harness with ephemeral PocketBase
...
CI / quality (push) Failing after 29s
Deploy / deploy (push) Successful in 2m37s
Previously, 15 e2e tests were skipped because TEST_USER_EMAIL and
TEST_USER_PASSWORD env vars weren't set. Now the test harness:
- Starts a fresh PocketBase instance in /tmp on port 8091
- Creates admin user, collections, and API rules automatically
- Seeds test user with period data for authenticated tests
- Cleans up temp directory after tests complete
Also fixes:
- Override toggle tests now use checkbox role (not button)
- Adds proper wait for OVERRIDES section before testing toggles
- Suppresses document.cookie lint warning with explanation
Test results: 64 e2e tests pass, 1014 unit tests pass
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-13 09:38:24 +00:00
38bea1ffd7
Add comprehensive E2E test suite for all user flows
...
CI / quality (push) Failing after 28s
Deploy / deploy (push) Successful in 2m28s
- Add e2e/auth.spec.ts (14 tests): Login page UI, form validation, error
handling, protected route redirects, public routes
- Add e2e/dashboard.spec.ts (10 tests): Dashboard display, decision card,
override toggles, navigation
- Add e2e/settings.spec.ts (15 tests): Settings form, Garmin settings,
logout flow
- Add e2e/period-logging.spec.ts (9 tests): Period history page, API auth
- Add e2e/calendar.spec.ts (13 tests): Calendar view, navigation, ICS
subscription, token endpoints
Total: 64 E2E tests (28 pass without auth, 36 skip when TEST_USER_EMAIL/
TEST_USER_PASSWORD not set)
Authenticated tests use test credentials via environment variables, allowing
full E2E coverage when PocketBase test user is available.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-12 22:44:57 +00:00