2.1 KiB
2.1 KiB
Invite System - Manual Testing Guide
Prerequisites
make devrunning- Seeded users:
admin@example.com/admin123,user@example.com/user123
1. Admin: Create Invites
- Login as admin@example.com
- Go to
/admin/invites - ✅ Dropdown shows list of users (not a number input)
- Select
user@example.com→ Click Create Invite - ✅ New invite appears with code like
apple-banana-42, status "ready"
2. Admin: Revoke Invite
- On
/admin/invites, click Revoke on a ready invite - ✅ Status changes to "revoked"
3. Admin: Filter Invites
- Use status dropdown to filter by "ready", "spent", "revoked"
- ✅ Table updates accordingly
4. Signup with Invite Code
- Logout → Go to
/signup - Enter a valid invite code → Click Continue
- ✅ Form shows "Create account" with email/password fields
- Fill in new email + password → Submit
- ✅ Redirected to home, logged in
5. Signup via Direct Link
- Copy a ready invite code (e.g.,
apple-banana-42) - Go to
/signup/apple-banana-42 - ✅ Redirects to
/signup?code=...with code pre-validated - Complete registration
- ✅ Works same as manual entry
6. Signup Error Cases
- Invalid code: Enter
fake-code-99→ ✅ Shows "not found" error - Spent invite: Use an already-used code → ✅ Shows error
- Revoked invite: Use a revoked code → ✅ Shows error
7. Regular User: My Invites
- Login as the newly created user (or
user@example.comif they have invites) - Go to
/invites - ✅ Shows list of invites assigned to this user
- ✅ Spent invites show who used them
8. Profile: Godfather Display
- Login as user created via invite
- Go to
/profile - ✅ "Invited By" shows the godfather's email (read-only)
Quick Smoke Test (2 min)
- Admin login →
/admin/invites→ Create invite foruser@example.com - Copy invite code
- Logout →
/signup→ Enter code → Register new user - Check
/profileshows godfather - Admin: verify invite status is "spent" with used_by email