Erghi Manual Test Guide
Fresh-environment walkthrough from zero to a working integration + chat test.
Prerequisites
shared-infrarunning (Postgres, Redis, GoTrue)- Erghi stack:
docker compose up -dinErghi/ .envincludesSUPABASE_SERVICE_ROLE_KEYandADMIN_PORTAL_URL=http://localhost:4210
Step 0 — Wipe old data
bash
cd Erghi
chmod +x scripts/reset_local_environment.sh
./scripts/reset_local_environment.sh --yesThis removes all users, workspaces, conversations, integrations, and RAG documents. Schema is preserved.
Step 1 — Register workspace (Admin)
- Open http://localhost:4210/register
- Fill: workspace name, company website, your name, email, password
- You become Owner/Admin with a new workspace
Verify: Dashboard shows zeros/empty (no mock data).
Step 2 — Start company sandbox
The sandbox is a temporary project outside ErghiPlatform:
bash
cd ../../Erghi.ManualTestSandbox # from Erghi/
dotnet runDelete when done — see Erghi.ManualTestSandbox/REMOVE_AFTER_TESTING.md.
Open http://localhost:5199 — note sample customers/orders.
Step 3 — Add API integration
- Admin Portal → Integrations → Add integration
- Upload
../../Erghi.ManualTestSandbox/wwwroot/openapi.json - Base URL:
http://host.docker.internal:5199(if chat-service runs in Docker) - Credential: API Key, header
X-Api-Key, valueacme-sandbox-key-dev - Click Test — should succeed
Step 4 — RAG knowledge (optional)
Admin → RAG → add document:
Returns accepted within 30 days. Gold tier customers get free return shipping.
Step 5 — Create widget
- Admin → Widgets → Create widget
- Copy embed code
- Open User Portal http://localhost:4211 and test chat
Step 6 — Invite agent
- Admin → Users → Invite Agent (email only)
- Check MailHog http://localhost:8025 for invite link
- Agent sets password at
/accept-invite, then logs in - Agent sees Dashboard + Conversations only
Step 7 — End-to-end chat test
In the widget, try:
- "What is the status of order ord-1001?"
- "List products in stock"
- "What is your return policy?" (RAG)
URLs
| Service | URL |
|---|---|
| Admin portal | http://localhost:4210 |
| User portal | http://localhost:4211 |
| API gateway | http://localhost:5080 |
| Sandbox company API | http://localhost:5199 |
| MailHog | http://localhost:8025 |
CI-only seeds (do not use for manual testing)
bash
# Optional E2E auth accounts
SEED_E2E_ACCOUNTS=1 ./scripts/phase2/prepare_phase2_tests.sh
# Optional integration fixture workspaces
psql $DATABASE_URL -f scripts/phase2/seed_integration_sample_data.sql