Files
vibn-frontend/QUICK_E2E_START.md

124 lines
2.2 KiB
Markdown

# Quick Start - E2E Collector Test
## The Fastest Way to Run the Test
### Option 1: Interactive Setup (Easiest)
```bash
cd /Users/markhenderson/ai-proxy/vibn-frontend
./setup-e2e-test.sh
```
This script will:
1. ✅ Check if server is running
2. ✅ Guide you through getting credentials
3. ✅ Test the connection
4. ✅ Run the E2E test automatically
**Just follow the prompts!**
---
### Option 2: Manual Setup (If You Know What You're Doing)
```bash
cd /Users/markhenderson/ai-proxy/vibn-frontend
# 1. Get your auth token from DevTools Network tab
# 2. Get your project ID from the URL
# 3. Run:
AUTH_TOKEN='Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6Ij...' \
PROJECT_ID='your-project-id' \
./test-e2e-collector.sh
```
---
## What the Test Does
```
Welcome Message
Upload 8 Documents (programmatically)
AI: "I see you've uploaded 8 documents"
User: "I have a GitHub repo"
AI: "Great! Let me help you connect it"
User: "I want the extension"
AI: "Here's how to install it"
User: "That's everything"
AI: "Perfect! Let me analyze..." (auto-transition)
User: "What do you need?"
AI: Uses extraction prompt (mode switched!)
```
---
## Expected Results
### Console Output:
```
✅ Welcome message contains: 'Step 1', 'Step 2', 'Step 3'
✅ Uploaded: project-overview.md
✅ Uploaded: user-stories.md
... (8 total)
✅ AI acknowledges documents
✅ AI responds to GitHub
✅ AI explains extension
✅ AI triggers auto-transition
✅ Mode switches to extraction
Passed: 15/15
Failed: 0/15
```
### Browser Verification:
1. Open the project in browser
2. Check AI Chat left sidebar:
- ✅ Documents uploaded (8)
- ✅ GitHub connected
- ⭕ Extension linked
3. Verify conversation flows naturally
4. Check mode badge shows "Extraction Review"
---
## Troubleshooting
### "Command not found: jq"
```bash
brew install jq
```
### "Server not running"
```bash
npm run dev
```
### "Unauthorized"
Get a fresh token - they expire after 1 hour
### "No reply received"
Check server logs for errors
---
## Ready? Run This:
```bash
cd /Users/markhenderson/ai-proxy/vibn-frontend
./setup-e2e-test.sh
```
**That's it!**