# Dress-Up Game Testing Guide

## Overview
The dress-up game has been completely redesigned with an inventory-based photo progression system. Players take a questionnaire declaring what items they own, then get a personalized photo journey based on their tier.

## System Files Created/Modified

### New Files
1. **src/utils/inventoryManager.js** - Core tier calculation and progression generation logic
2. **src/data/poseBanks/inventoryPoseBank.js** - 36 poses across 7 categories
3. **docs/DRESS_UP_GAME_REDESIGN.md** - Complete system documentation
4. **docs/DRESS_UP_TESTING_GUIDE.md** - This file

### Modified Files
1. **src/data/modes/dressUpGameData.js** - Complete rewrite with questionnaire and 5 tier endings
2. **src/features/tasks/interactiveTaskManager.js** - Added inventory-check and path-generation handlers
3. **index.html** - Added script tags for inventory utilities
4. **src/styles/styles.css** - Added inventory questionnaire and summary styles

## Tier System

### Tier Thresholds
- **Tier 1**: 0-3 items = 5 photos
- **Tier 2**: 4-7 items = 10 photos
- **Tier 3**: 8-12 items = 15 photos
- **Tier 4**: 13-17 items = 20 photos
- **Tier 5**: 18+ items = 25 photos

### Item Categories (21 total)

**Clothing (8):**
- Panties (none/basic/sexy/multiple)
- Bras (none/sports/regular/sexy/multiple)
- Dresses (none/casual/slutty/multiple)
- Skirts (none/basic/mini/micro/multiple)
- Pantyhose/Stockings (none/nude/fishnet/multiple)
- Heels/Shoes (none/flats/heels/platforms)
- Wigs (none/short/long/colored)
- Lingerie Sets (none/basic/sexy/extreme)

**Accessories (3):**
- Makeup Kit (none/basic/full)
- Jewelry (none/basic/feminine/collar)
- Nail Polish (none/basic/colors)

**Toys (6):**
- Dildos (none/small/medium/large/multiple)
- Butt Plugs (none/small/medium/large/tail)
- Chastity Device (none/cage/belt)
- Restraints (none/cuffs/rope/spreader)
- Gags (none/ball/ring)
- Nipple Clamps (none/basic/weighted/chain)

**Environment (4):**
- Mirror Available (checkbox)
- Full-Length Mirror (checkbox)
- Private Space (checkbox)
- Phone/Camera Stand (checkbox)

## Testing Scenarios

### Test 1: Minimal Inventory (Tier 1)
**Items to select:**
- Panties: basic
- Mirror Available: ✓
- Private Space: ✓

**Expected Results:**
- Tier 1 calculated
- 5 photo challenges generated
- Only panties required in poses
- Certificate: "🩲 CERTIFICATE OF BASIC EXPOSURE"
- Pink/white gradient, pink border

### Test 2: Medium Inventory (Tier 2)
**Items to select:**
- Panties: sexy
- Bras: regular
- Dresses: casual
- Heels: flats
- Mirror Available: ✓
- Full-Length Mirror: ✓
- Private Space: ✓

**Expected Results:**
- Tier 2 calculated (7 items)
- 10 photo challenges
- Progressive item addition (starts with panties, adds bra/dress/heels)
- Edging introduced around photo 3-4
- Certificate: "👗 CERTIFICATE OF FEMINIZATION BEGINNER"
- Purple/pink gradient

### Test 3: Full Feminization (Tier 3)
**Items to select:**
- Panties: multiple
- Bras: sexy
- Dresses: slutty
- Skirts: mini
- Pantyhose: fishnet
- Heels: heels
- Wigs: long
- Lingerie: sexy
- Makeup: basic
- Jewelry: feminine
- Mirror Available: ✓
- Full-Length Mirror: ✓

**Expected Results:**
- Tier 3 calculated (12 items)
- 15 photo challenges
- Full feminization progression
- Moderate edging frequency
- Certificate: "🎀 CERTIFICATE OF COMPLETE SISSY TRANSFORMATION"
- Hot pink gradient with gold border

### Test 4: Toy Integration (Tier 4)
**Items to select:**
- All Tier 3 items PLUS:
- Dildos: medium
- Butt Plugs: small
- Nail Polish: colors
- Lingerie: extreme
- Restraints: cuffs

**Expected Results:**
- Tier 4 calculated (17 items)
- 20 photo challenges
- Toys introduced at 65% progression (photo 13)
- Frequent edging (every 2nd photo)
- Certificate: "🔞 CERTIFICATE OF TOY INTEGRATION MASTER"
- Red/black gradient

### Test 5: Ultimate Collection (Tier 5)
**Items to select:**
- ALL items at maximum levels
- All checkboxes checked

**Expected Results:**
- Tier 5 calculated (21 items)
- 25 photo challenges
- All items progressively added
- Extreme toys at end (chastity, gag, clamps)
- Almost constant edging (>80%)
- Certificate: "⛓️ CERTIFICATE OF ULTIMATE SISSY SLUT"
- Black/neon pink gradient with green border, glowing effect

## Key Features to Verify

### ✅ Questionnaire
- [ ] All 21 items display correctly
- [ ] Dropdowns show correct options
- [ ] Checkboxes toggle properly
- [ ] Submit button collects all values
- [ ] Navigation to summary works

### ✅ Inventory Summary
- [ ] Correct tier displayed
- [ ] Item count accurate
- [ ] Photo count matches tier
- [ ] Item lists show selected items organized by category
- [ ] "Begin transformation" navigates to first challenge
- [ ] "Adjust inventory" returns to questionnaire

### ✅ Photo Challenges
- [ ] Correct number generated (5/10/15/20/25)
- [ ] Items required match availability
- [ ] Progressive item addition works
- [ ] Edging frequency escalates appropriately
- [ ] Pose selection matches items
- [ ] All challenges navigable in sequence

### ✅ Certificate Endings
- [ ] Correct certificate for tier
- [ ] Tier badge displays with correct styling
- [ ] Photo count shown accurately
- [ ] Item list populated with used items
- [ ] Visual styling matches tier (gradients, borders)
- [ ] Final state text appropriate

## Common Issues to Check

### Issue: Blank screen after questionnaire
**Cause:** inventoryManager.js not loaded
**Fix:** Verify script tag in index.html

### Issue: No poses selected
**Cause:** inventoryPoseBank.js not loaded
**Fix:** Verify script tag in index.html

### Issue: Items list empty in certificate
**Cause:** populateInventoryItemsList not called
**Fix:** Check ending step type === 'ending' and scenarioState has tier

### Issue: Wrong number of photos
**Cause:** Tier calculation incorrect
**Fix:** Verify countTotalItems() logic in inventoryManager.js

### Issue: Items required but not owned
**Cause:** Progressive addition logic error
**Fix:** Check selectItemsForChallenge() in inventoryManager.js

## Console Debugging

Enable console logging to track progression:
```javascript
// In browser console:
window.localStorage.setItem('debug', 'true');
```

Look for these log messages:
- `📋 Displaying inventory questionnaire`
- `📦 Collected inventory: {...}`
- `🎯 Generating inventory-based path`
- `📊 Tier X: Y items, Z photos`
- `📸 Generated N photo challenges`
- `✅ Added N challenge steps to scenario`

## Manual Testing Steps

1. Open game in browser
2. Navigate to Training Academy
3. Select "Dress-Up/Photography Challenges"
4. Choose "Inventory-Based Photo Transformation" scenario
5. Click "Begin inventory questionnaire"
6. Fill out questionnaire (use test scenarios above)
7. Click "Submit Inventory"
8. Verify summary displays correctly
9. Click "Begin my personalized photo journey"
10. Complete photo challenges
11. Verify certificate displays with correct items
12. Click "Complete Task" to return

## Success Criteria

- ✅ All 5 tiers generate correct photo counts
- ✅ Item requirements never exceed available items
- ✅ Edging frequency escalates appropriately
- ✅ Pose selection matches required items
- ✅ Certificates display with accurate item lists
- ✅ No errors in console
- ✅ Smooth progression from questionnaire → challenges → certificate
