wyuc 2356d283e4
test(e2e): add end-to-end generation happy path test (#401) (#405)
Add a single E2E test that exercises the complete user flow without
pre-seeding any intermediate state:

  Home page (fill + submit)
  → Generation preview (mocked SSE + content + actions)
  → Auto-redirect to classroom
  → Classroom (verify scenes load + navigation works)

Also fix a latent bug in MockApi.mockSceneActions where a hardcoded
stageId='test-stage' caused addScene() to silently drop the scene
(stageId mismatch validation). The mock now extracts the actual
stageId from the request body when none is explicitly provided.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 11:49:02 +08:00
..