Testy e2e: resetDb czysci seed, test-all w Justfile; db.json 56 rezerwacji na 2 tygodnie

This commit is contained in:
Krzysztof Cieślik
2026-06-21 07:22:38 +02:00
parent 7eb11de84e
commit f1eb1a7b20
4 changed files with 499 additions and 4 deletions

View File

@@ -241,7 +241,57 @@ type Mutation {
## Wyniki testów
### Vitest — testy jednostkowe
```
Vitest (jednostkowe): 25 passed, 0 failed
Playwright (e2e): 32 passed, 0 failed, 2 warnings
src/tests/StatusBadge.test.jsx 6 tests
src/tests/ProtectedRoute.test.jsx 4 tests
src/components/StatusBadge.test.jsx 6 tests
src/tests/BookingForm.test.jsx 5 tests
src/tests/LoginPage.test.jsx 4 tests
Test Files 5 passed (5)
Tests 25 passed (25)
Duration 1.22s
```
### Playwright — testy e2e
```
PASS Login page loads (email field visible)
PASS Wrong credentials → error message
PASS Admin login → /admin
PASS Admin table — 56 rows
PASS Confirm button visible
PASS Confirm click updates row to Confirmed
PASS Delete confirmation modal opens
PASS Calendar tab button visible
PASS Calendar view renders month — June 2026
PASS Calendar weekday headers render
WARN No busy day cells visible in current month view
PASS Calendar next-month navigation — July 2026
PASS Admin logout → /login
PASS Client login → /dashboard
PASS AvailabilitySearch section renders
PASS Date syncs to URL
PASS Service syncs to URL
PASS Time slot grid renders (09:00 visible)
PASS Slot click (09:00) jumps wizard to step 3
PASS Wizard renders at step 1 after reload
PASS Service cards render
PASS Wizard step 2 (Date & Time)
PASS Wizard step 3 (Requirements)
PASS Wizard step 4 (Summary)
PASS Confirm & Pay button in step 4
PASS Payment modal opens
PASS Deposit amount displayed — $25.00
PASS Full booking flow — Booking Confirmed shown
WARN Receipt block not visible
PASS My Reservations sidebar renders
PASS My Reservations lists items
PASS Cancel from My Reservations updates status
PASS Dark mode toggle works
PASS Client blocked from /admin → redirected to /dashboard
32 passed · 2 warnings · 0 failed
```