# QTC – BOSCH pre-publish testing checklist

## Current readiness
- Database, email/password sign-in, protected staff roles, secure draws, stock reservations, issuance, admin settings, private prize uploads, reports and audit logs are connected.
- No simulated customer or spin records have been inserted.
- First administrator account is provisioned. Use the password setup email or Forgot password at the sign-in page.
- Promotion is not configured: an administrator must enter actual stock quantities, winning percentages, opening/closing dates and enable the promotion.
- Product photos are generated illustrations; replace them with approved product photographs in Prize Management before launch.
- Signed-in end-to-end checks and concurrency/load checks have NOT been performed because temporary production test-user creation was declined.
- Email reset request was accepted; delivery and the recovery-link flow still require checking from the recipient inbox.

## Access and setup
- [ ] Open the password email and set a strong password; sign in as administrator.
- [ ] Create a Staff user, sign in and verify administrator pages and admin-only actions are denied.
- [ ] Verify public signup and anonymous data access are blocked.
- [ ] Sign out, press Back and verify private information is not restored.
- [ ] Configure five real opening stock quantities; winning percentages must total exactly 100.
- [ ] Enter campaign dates in Qatar local time, activate and verify status.
- [ ] Replace generated product images with approved photos and verify wheel/list/receipt display.

## Registration and draw
- [ ] Register a customer with a valid 8-digit Qatar mobile and invoice/reference.
- [ ] Repeat the invoice with different case and spacing; registration must be rejected.
- [ ] Register the same customer with a different invoice; registration must succeed.
- [ ] Spin and confirm a unique QTC-BOSCH-2026-000001-style identifier.
- [ ] Double-click Spin; only one initial result must exist.
- [ ] Refresh after a result; pending prize must remain available for decision.
- [ ] Accept prize; reserved stock remains held until issuance.
- [ ] Explicitly confirm prize issued; reserved decreases once, issued increases once.
- [ ] Repeat issuance request; inventory must not change a second time.
- [ ] Print a receipt and check customer, masked mobile, invoice, Spin ID, prize, time and staff.

## Bonus and inventory
- [ ] Request Customer Not Satisfied before acceptance: original becomes Replaced; new ID links to original.
- [ ] Verify original reservation is released atomically and new prize is reserved.
- [ ] A second bonus must be denied in both UI and server.
- [ ] Replaced prize cannot be issued. Only the final prize consumes issued stock.
- [ ] Configure a prize with no available stock; it must never be drawn.
- [ ] Configure no available prizes; spin must fail without partial updates.
- [ ] Simultaneously draw the final unit from separate devices; stock must never go negative.
- [ ] Zero-weight prizes must never win; available weights are redistributed proportionally.
- [ ] Outside campaign dates or when inactive, registration and spins are denied.

## Reports and audit
- [ ] Check customers, transactions, initial/bonus spins, issued/pending/replaced and remaining stock counts.
- [ ] Compare all nine report types with known actual transactions.
- [ ] Test date filters across midnight in Asia/Qatar; search customer, phone, invoice and Spin ID.
- [ ] Open CSV and Excel exports and compare with the filtered page.
- [ ] Verify settings, role changes, registrations, spins, replacements, acceptance and issuance in audit logs.
- [ ] Verify staff see only their own transaction/spin records; admins see all.
- [ ] Confirm customer personal details are masked where appropriate.

## Launch
- [ ] Verify published password-reset redirect points to your published domain.
- [ ] Verify touchscreen, phone, desktop, sound toggle, fullscreen, animations and reduced-motion settings.
- [ ] Run concurrency and security review before processing real customer purchases.
- [ ] Confirm opening stock and campaign dates with the promotion owner.
