# 🧪 Testing Wholesale Partner Document Upload - LIVE

## ✅ Server Status
- **Status**: Running
- **URL**: http://localhost:3001
- **Port**: 3001 (3000 was in use)

---

## 📋 Test Plan

### Test 1: Visual Verification
1. Open browser: **http://localhost:3001/register**
2. Click "Wholesale Partner" card
3. **Check**: Do you see partner type tabs?
   - [ ] "In-Country Partner" tab with 📍 icon
   - [ ] "International Partner" tab with 🌍 icon

### Test 2: Local Partner (10 Documents)
1. Click "In-Country Partner" tab
2. **Check**: Do you see 10 document upload fields?
   - [ ] Company Profile
   - [ ] CR14
   - [ ] Certificate of Incorporation
   - [ ] Tax Clearance
   - [ ] Director National ID #1 (2 files)
   - [ ] Director National ID #2 (2 files)
   - [ ] Director Proof of Residence #1
   - [ ] Director Proof of Residence #2
   - [ ] ZIMRA Registration Certificate
   - [ ] POTRAZ License

### Test 3: International Partner (7 Documents)
1. Click "International Partner" tab
2. **Check**: Do document fields change?
   - [ ] Certificate of Incorporation/Business Registration
   - [ ] Articles of Association/Memorandum
   - [ ] Shareholder IDs (up to 10 files)
   - [ ] List of Directors
   - [ ] Tax Identification Number
   - [ ] NDA Document
   - [ ] MSA Document

### Test 4: File Upload Functionality
1. Try drag & drop a file
   - [ ] Drop zone highlights when dragging
   - [ ] File appears in list after drop
   - [ ] File size shows correctly
   - [ ] Remove button works

2. Try click to browse
   - [ ] File picker opens
   - [ ] Selected file appears in list

3. Try invalid file
   - [ ] Upload .txt file → Should show error
   - [ ] Upload 11MB file → Should show error

### Test 5: Form Validation
1. Fill in basic information
2. Try submitting WITHOUT uploading documents
   - [ ] Should show error: "Please upload all required documents"
3. Upload all required documents
4. Submit form
   - [ ] Should show success message
   - [ ] Should mention "under review"

### Test 6: Backend Verification (After Submission)
1. Check Laravel logs
2. Check database for customer record
3. Check filesystem for uploaded documents
4. Check email was sent
5. Check Odoo for partner record and attachments

---

## 🎯 What to Look For

### Good Signs ✅
- Partner type tabs render correctly
- Document fields change when switching tabs
- Drag & drop works smoothly
- File validation shows toast messages
- Form submission works
- Success message appears

### Red Flags 🚨
- Tabs don't appear
- Document fields don't change
- Console errors in browser
- File upload doesn't work
- Form submission fails
- No success message

---

## 🐛 If You See Issues

### Issue: Components not rendering
**Check**: Browser console (F12) for errors
**Fix**: Verify all component files exist

### Issue: File upload not working
**Check**: Network tab for API errors
**Fix**: Verify backend is running

### Issue: Validation errors
**Check**: Toast notifications for details
**Fix**: Ensure all required documents uploaded

---

## 📸 Expected UI

```
┌─────────────────────────────────────────────────────┐
│  Wholesale Partner Registration                     │
├─────────────────────────────────────────────────────┤
│                                                     │
│  Partner Category                                   │
│  ┌──────────────────┐  ┌──────────────────┐       │
│  │ 📍 IN-COUNTRY    │  │ 🌍 INTERNATIONAL │       │
│  │ (Selected)       │  │                  │       │
│  └──────────────────┘  └──────────────────┘       │
│                                                     │
│  Basic Information                                  │
│  Name:     [_________________________]             │
│  Email:    [_________________________]             │
│  Phone:    [_________________________]             │
│                                                     │
│  Required Documents (10)                            │
│                                                     │
│  📄 Company Profile *                              │
│  ┌───────────────────────────────────────────┐    │
│  │  📤 Drag & drop or click to upload        │    │
│  │     PDF, JPG, PNG, DOC, DOCX (max 10MB)  │    │
│  └───────────────────────────────────────────┘    │
│                                                     │
│  📄 CR14 *                                         │
│  ┌───────────────────────────────────────────┐    │
│  │  📤 Drag & drop or click to upload        │    │
│  └───────────────────────────────────────────┘    │
│                                                     │
│  ... (8 more document fields)                      │
│                                                     │
│  [Create Account]                                   │
└─────────────────────────────────────────────────────┘
```

---

## 🔍 Quick Checks

Open browser console (F12) and check:
1. No red errors in Console tab
2. Network tab shows successful requests
3. React components render without warnings

---

## 📞 Report Back

After testing, let me know:
1. ✅ What works correctly
2. ❌ What doesn't work
3. 🤔 Any unexpected behavior
4. 📸 Screenshots if helpful

---

**Ready to test!** Open: http://localhost:3001/register
