Manual Network Testing Guide - Wizard Retry Fix
URL:https://payroll-pipeline-cbs.vercel.app/ingestionDate: 2026-02-06
🎯 Objective
Test the wizard save flow and verify:- Save request succeeds (PUT 200)
- Readiness check retries if needed (1-3 GET requests)
- Wizard unblocks after save
- Persisted config visible after refresh
📋 Step-by-Step Testing
Step 1: Load Network Capture Script
- Navigate to:
https://payroll-pipeline-cbs.vercel.app/ingestion - Open DevTools: Press
F12 - Go to Console Tab
- Copy the entire contents of
scripts/capture_network_activity.js - Paste into console and press Enter
Step 2: Navigate to Preflight Step
- Complete Map Columns step if needed
- Navigate to Preflight step
- Verify businesses are listed
Step 3: Save Business Configuration
- Find a business showing “not ready” status
- Click “Configure” button
- In the drawer:
- Set PEPM rate to
12.00 - Click “Save”
- Set PEPM rate to
- Watch Console:
- Should see:
📡 PUT /api/v1/admin/onboarding/businesses/{id}/save - Should see:
✅ PUT ... → 200 OK - Should see:
📡 GET /api/v1/intake/ingestion-wizard/readiness?... - May see multiple GET requests if retries occur
- Should see:
Step 4: Check Network Summary
In Console, run:Step 5: Verify UI Behavior
After Save Completes:- ✅ Drawer closes
- ✅ Business shows as “ready”
- ✅ Success toast: “Business configured successfully”
- ✅ Processing button enables (if all businesses ready)
Step 6: Test Persistence
- Hard refresh:
Ctrl+F5(Windows) orCmd+Shift+R(Mac) - Navigate back to Preflight
- Click “Configure” on the same business
- Verify: PEPM rate still shows
12.00
🔍 What to Look For
✅ Success Indicators
Console Output:📡 PUT /saverequest logged✅ PUT ... → 200 OKresponse logged📡 GET /readinessrequests logged (1-3)✅ GET ... → 200 OKresponses loggedshowNetworkSummary()shows expected counts
- PUT request to
/api/v1/admin/onboarding/businesses/{id}/save- Status: 200 OK
- Request Headers:
x-org-id: cbs-main - Request Body:
period_label: 2025-12-01
- GET requests to
/api/v1/intake/ingestion-wizard/readiness?...- Status: 200 OK
- Query Params:
period_label=2025-12-01 - May see 1-3 requests if retry logic triggers
- Drawer stays open during refresh
- Business becomes “ready” after save
- Persisted config visible after refresh
⚠️ Troubleshooting
Issue: No Requests Captured- Verify script loaded successfully
- Check console for errors
- Try
clearNetworkCapture()and test again
- This is normal if config is immediately queryable
- No retries needed = backend is fast
- Still a success!
- Check readiness response: Does it show
is_ready: true? - Run
showNetworkSummary()to see readiness data - Verify
period_labelmatches between save and readiness query
📊 Expected Results
| Test | Expected | Status |
|---|---|---|
| Save Request | PUT 200 OK | ⏳ |
| Readiness Requests | 1-3 GET requests | ⏳ |
| Retry Delay | ~500ms between retries | ⏳ |
| Wizard Unblocks | Business shows as ready | ⏳ |
| Persistence | Config visible after refresh | ⏳ |
🛠️ Additional Commands
Clear captured data:📝 Notes
- Script captures all fetch requests automatically
- Console logs show important requests in real-time
showNetworkSummary()provides detailed analysis- Retry logic works even if console logs don’t show (production builds)
Ready to test! Follow the steps above and use
showNetworkSummary() to verify results.