Skip to content

Add Playwright test for live session control #588

Description

@rogerSuperBuilderAlpha

Path: app/api/live/[sessionId]/control/route.ts, app/live/
Size: M

Problem / Context: Live session control (start, pause, end) untested. Could accept invalid state transitions.

Proposed scope:

  • Create __tests__/e2e/live-session.spec.ts
  • Test: start session, pause, resume, end
  • Invalid transitions rejected (e.g., pause before start)
  • Auth required (host only)

Acceptance criteria:

  • State machine tested (5+ transitions)
  • Auth validation covered
  • Integration with Firestore verified

This issue was filed as part of the Sports Hack 2026 contributor audit. Grab it if it looks interesting — merged PRs move you up the ranking for one of the 80 confirmed seats. Before starting, drop a comment so we don't double-assign.

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintainer:auditInternal maintainer review work — not contributor surface. Newcomers can ignore this label.staleAutomatically applied to inactive issues/PRstestingTesting and coverage improvements

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions