Files
EventSnap/TEST_GUIDE.md
MechaCat02 eab5bb4d1c feat: add /admin/login page (v0.14.0)
Password form at /admin/login that calls POST /api/v1/admin/login and
redirects to /admin on success. Admin dashboard now redirects to
/admin/login instead of /join when unauthenticated. Test guide updated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 19:35:40 +02:00

6.5 KiB

Frontend Testing — Step by Step

Please test each step in order and report any errors (console errors, wrong text, broken UI, API errors).

Step 1 — Join flow + PIN modal

  1. Open http://localhost:5173/ in your browser (or navigate there if already open)
  2. You should land on the join page (/join) with a name input
  3. Enter your name (e.g. Max) and click Beitreten
  4. Expected: A modal appears showing your 4-digit PIN in large monospace font with a "Kopieren" button
  5. Click Weiter zur Galerie

Step 2 — Onboarding guide

  1. You should land on the feed page (/feed)
  2. Expected: A dark overlay appears at the bottom (or center on desktop) — the onboarding guide — showing step 1 of 4 with a step indicator and the Willkommen screen
  3. Click Weiter through all 4 steps, then Los geht's!
  4. Expected: Overlay disappears

Step 3 — Feed & navigation

  1. Expected: Feed shows "Noch keine Fotos." empty state with an upload button
  2. Expected: Top-right has an upload button (blue) and a person icon link

Step 4 — My Account page

  1. Click the person icon in the top-right
  2. Expected: /account page shows your name (Max), a blue "Gast" badge, session expiry date, and your PIN displayed large in an amber box
  3. Click Kopieren — check clipboard contains your PIN
  4. Expected: Button briefly shows "Kopiert!"
  5. Click Zur Galerie to go back to the feed

Step 5 — Upload

  1. Click Hochladen — this takes you to /upload
  2. Try uploading a photo from your device library
  3. Expected: Photo appears in queue with a progress bar, then completes
  4. Go back to /feed Expected: your photo appears in the feed grid

Step 6 — Onboarding guide not shown again

  1. Reload the page at /feed
  2. Expected: The onboarding overlay does not appear (already dismissed)

Step 7 — Recover (open a private/incognito window)

  1. Open a new private/incognito window at http://localhost:5173/recover
  2. Enter the same name (Max) and the PIN you copied
  3. Expected: You're redirected to the feed with the same account

Step 8 — Upload rate-limit auto-retry

  1. Upload more than 20 photos in one hour to trigger the rate limit
  2. Expected: When the limit is hit, remaining items stay Wartend (not error)
  3. Expected: An amber banner appears in the queue: "Upload-Limit erreicht. Wird in Xs automatisch fortgesetzt."
  4. Expected: The countdown ticks down and uploads resume automatically when it reaches 0

Step 9 — Name uniqueness (case-insensitive)

  1. In a private/incognito window go to http://localhost:5173/join
  2. Enter max or MAX — the same name already taken in Step 1 (different case)
  3. Expected: Instead of creating a new account, an amber warning appears: „Max ist bereits vergeben." with name tips
  4. Expected: A PIN input and Anmelden button appear, plus an Anderen Namen wählen button
  5. Enter your PIN from Step 1 and click Anmelden
  6. Expected: You're signed in to the existing Max account and redirected to the feed
  7. Alternatively, click Anderen Namen wählen Expected: the name input reappears with max pre-filled so you can edit it

Admin & Host Features

For these steps you need an admin session. Go to http://localhost:5173/admin/login and enter the admin password (admin123 for the dev environment). You'll be redirected to the dashboard automatically.

Step 10 — Admin Dashboard: Stats & Config

  1. Go to http://localhost:5173/admin
  2. Expected: Stats card shows user count, upload count, comment count, and a disk-usage progress bar
  3. In the Konfiguration section, change Upload-Limit pro Stunde to a different value (e.g. 5) and click Speichern
  4. Expected: Toast "Konfiguration gespeichert." appears briefly
  5. Reload — Expected: the changed value persists

Step 11 — Admin Dashboard: Export Jobs

  1. The Export-Jobs section shows all past jobs (likely empty if gallery hasn't been released yet)
  2. Click Aktualisieren Expected: list refreshes without a full page reload

Step 12 — Host Dashboard: Event Controls

  1. Navigate to http://localhost:5173/host (or click "Host-Dashboard" from the admin page)
  2. Expected: Event name shown in the header; two status dots (Uploads open/locked, Export released/locked)
  3. Click Uploads sperren
  4. Expected: Toast "Uploads wurden gesperrt."; button changes to "Uploads wieder öffnen"; status dot turns red
  5. Try uploading a photo as a guest — Expected: "Uploads sind gesperrt." error
  6. Click Uploads wieder öffnen Expected: dot turns green; uploads work again

Step 13 — Host Dashboard: User Management

  1. The Gäste list shows all registered users with upload counts and sizes
  2. Find a guest and click Host next to their name
  3. Expected: Toast "X ist jetzt Host."; a blue "Host" badge appears next to their name
  4. As admin, a Degradieren button is now visible — click it
  5. Expected: Toast "X ist jetzt Gast."; badge disappears

Step 14 — Host Dashboard: Ban & Unban

  1. Click Sperren next to a guest
  2. Expected: A confirmation modal opens asking what to do with their uploads, with a checkbox "Uploads aus der Galerie ausblenden"
  3. Leave the checkbox unchecked and click Sperren
  4. Expected: Toast "X wurde gesperrt."; a red "Gesperrt" badge appears; buttons change to Entsperren
  5. Try uploading as that banned user — Expected: "Du bist gesperrt." error
  6. Click Entsperren Expected: ban lifted; badge gone
  1. Make sure you have at least a few photos uploaded, then on the Host Dashboard click Galerie freigeben
  2. Expected: Toast "Galerie wurde freigegeben. Export wird vorbereitet…"; button becomes disabled "Galerie bereits freigegeben"
  3. Navigate to http://localhost:5173/export as any logged-in user
  4. Expected: Two cards — ZIP-Archiv and HTML-Viewer — both initially showing "Wird vorbereitet…" or a progress bar
  5. Wait for both to show "Bereit zum Download" (reload or wait for SSE to update the UI)
  6. Click Download on the ZIP card — Expected: Gallery.zip downloads
  7. Click Download on the HTML card — Expected: A guide modal appears explaining how to open the file; click Herunterladen to get Memories.zip
  8. In the Admin Dashboard → Export-Jobs, click Aktualisieren Expected: both jobs show "Fertig" with green badges