Skip to content

Latest commit

 

History

History
113 lines (73 loc) · 2.25 KB

File metadata and controls

113 lines (73 loc) · 2.25 KB

TEST-SCRIPT: streaming-chat

Manual test walkthrough for the streaming-chat MVP Summit demo.


Prerequisites

  • Node.js ≥ 20
  • Run npm install in samples/streaming-chat/
  • For live mode: authenticated with GitHub Copilot (gh auth login)

Test 1 — Demo Mode Startup

SQUAD_DEMO_MODE=true npx tsx index.ts

Expected:

  • Banner displays: 🎬 Squad Streaming Chat · MVP Summit
  • Cast shows 3 agents with colored bullets: McManus (cyan), Kobayashi (magenta), Fenster (yellow)
  • Message: Running in demo mode — responses are simulated
  • Prompt appears: ◆ you >

Test 2 — Backend Routing

Type: How should I design the API endpoints?

Expected:

  • Header shows: McManus (Backend) in cyan
  • Response streams word-by-word (visible character-at-a-time output)
  • Response is backend-themed (mentions Express, API, etc.)
  • Prompt reappears after response completes

Test 3 — Frontend Routing

Type: Build me a nice UI layout

Expected:

  • Header shows: Kobayashi (Frontend) in magenta
  • Response streams word-by-word
  • Response is frontend-themed (mentions CSS, components, etc.)

Test 4 — Tester Routing

Type: I need more test coverage

Expected:

  • Header shows: Fenster (Tester) in yellow
  • Response streams word-by-word
  • Response is test-themed (mentions coverage, mocks, etc.)

Test 5 — Default Routing

Type: What do you think?

Expected:

  • Falls through to McManus (Backend) as default
  • Response streams normally

Test 6 — Quit Command

Type: /quit

Expected:

  • Displays: 👋 Goodbye!
  • Process exits cleanly (exit code 0)

Test 7 — Empty Input

Press Enter without typing anything.

Expected:

  • Prompt reappears immediately (no error)

Test 8 — Graceful Copilot Fallback (no SQUAD_DEMO_MODE)

npx tsx index.ts

Expected (without Copilot auth):

  • Shows: ⚠ Could not connect to Copilot: ...
  • Shows: Falling back to demo mode
  • Chat works normally in demo mode

Test 9 — Unit Tests

npx vitest run

Expected:

  • All tests pass
  • Tests cover: routing, demo responses, pipeline wiring, agent casting