๐งช Full CRM System Test
Complete workflow: Quote โ Deposit โ Job โ Vehicles โ Staff โ Timesheets
Test Controls
New Features Tested: Vehicle assignment, guaranteed hours (any TeamLeader), manual staff (3 drivers + 4 porters), timesheet auto-creation, pay calculations
๐ What This Test Covers
โ Automated Tests (Stages 1-10)
- Quote Creation: Manual quote with addresses
- Email Workflow: Quote sending via Resend
- Client Actions: Deposit confirmation simulation
- Job Creation: Auto-conversion from quote
- ๐ Vehicle Assignment: Assign vehicle & status change to "on_job"
- ๐ TeamLeader Guaranteed Hours: Setup & 4 pay calculation tests (works with any TeamLeader user)
- ๐ Manual Staff: 3 drivers + 4 porters assignment
- ๐ Check-in/Out: Simulate 6-hour shifts for 3 staff
- ๐ Timesheet Creation: Auto-generation from job
- ๐ Pay Verification: Driver ยฃ12.50/h, Porter ยฃ12.21/h
- ๐ Vehicle Reset: Return to "available" after job
๐ Manual Verification Required (Stage 11)
- Go to Finance โ Timesheets
- Find test job timesheets (use the job number from "Test Data" above)
- Verify Weekly Pay Summary shows correct calculations
- Check for guaranteed hours badge on TeamLeader's entries
- Export payroll CSV and verify all data
- Verify job record (Job ID in test data) for complete timeline, staff assignments, vehicle, etc.
- Verify email logs (if accessible) for the quote email.