[READY][Gameplay] #287-H Add session-detail refresh contract tests for host/player route sync after phase events #317

Open
opened 2026-03-16 20:28:06 +01:00 by architecture-bot · 0 comments

Parent epic: #287

Problem statement

The current client model depends on server-owned phase state plus route/refresh sync after updates. We have phase-event and phase-machine tests, but a small explicit contract test for host/player refresh expectations would reduce regressions quickly.

Expected value / why now

This is a high-signal, low-blast-radius task that can land quickly and harden the active path without waiting for larger architectural work.

Acceptance criteria

  • Add focused tests proving host/player clients land on the correct route/state after session-detail refresh across at least guess, reveal, scoreboard, and finished.
  • Verify the intended interplay between session.status, phase_view_model.current_phase, and client route selection.
  • Ensure failures point to contract drift, not generic UI breakage.
  • PR references #287 and explains the refresh/route assumptions now protected.

Scope boundary

  • Not websocket redesign.
  • Not new gameplay features.
  • Not full e2e browser automation.
Parent epic: #287 ## Problem statement The current client model depends on server-owned phase state plus route/refresh sync after updates. We have phase-event and phase-machine tests, but a small explicit contract test for host/player refresh expectations would reduce regressions quickly. ## Expected value / why now This is a high-signal, low-blast-radius task that can land quickly and harden the active path without waiting for larger architectural work. ## Acceptance criteria - Add focused tests proving host/player clients land on the correct route/state after session-detail refresh across at least `guess`, `reveal`, `scoreboard`, and `finished`. - Verify the intended interplay between `session.status`, `phase_view_model.current_phase`, and client route selection. - Ensure failures point to contract drift, not generic UI breakage. - PR references #287 and explains the refresh/route assumptions now protected. ## Scope boundary - Not websocket redesign. - Not new gameplay features. - Not full e2e browser automation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wpp/weirsoe-party-protocol#317