Web UI: Test coverage and CI checks #436

Closed
opened 2026-07-07 12:21:03 -05:00 by jcwalker3 · 0 comments
Owner

Problem statement

The web UI needs automated tests and CI coverage to prevent regressions in read-only guarantees and route health.

Scope

Add tests for web UI MVP:

  • server startup
  • route rendering
  • project registry loading
  • prompt rendering
  • queue dashboard read-only mode
  • audit parser basics
  • no write actions without gates

Acceptance criteria

  • Tests cover server startup
  • Tests cover route rendering for all MVP routes
  • Tests cover project registry loading
  • Tests cover prompt library rendering
  • Tests cover queue dashboard read-only mode (no mutation endpoints)
  • Tests cover audit parser basics
  • Tests cover gated-action framework: no write actions exposed without gates
  • CI runs the web UI test suite on PRs touching the UI

Non-goals

  • Full browser E2E of Gitea mutations
  • 100% coverage mandate beyond MVP routes
  • Testing production VPN/Access integrations in CI

Relation to tracker

Child of tracker #425. Implements one slice of the MCP Control Plane internal web UI. Does not duplicate backend policy already enforced by MCP tools/workflows.

Dependencies

Depends on #426 (skeleton) and functional child issues #427–#435 for meaningful integration tests; can land incrementally per page.

Notes

Add CI job alongside existing test harness; keep tests fast and hermetic.

## Problem statement The web UI needs automated tests and CI coverage to prevent regressions in read-only guarantees and route health. ## Scope Add tests for web UI MVP: - server startup - route rendering - project registry loading - prompt rendering - queue dashboard read-only mode - audit parser basics - no write actions without gates ## Acceptance criteria - Tests cover server startup - Tests cover route rendering for all MVP routes - Tests cover project registry loading - Tests cover prompt library rendering - Tests cover queue dashboard read-only mode (no mutation endpoints) - Tests cover audit parser basics - Tests cover gated-action framework: no write actions exposed without gates - CI runs the web UI test suite on PRs touching the UI ## Non-goals - Full browser E2E of Gitea mutations - 100% coverage mandate beyond MVP routes - Testing production VPN/Access integrations in CI ## Relation to tracker Child of tracker #425. Implements one slice of the MCP Control Plane internal web UI. Does not duplicate backend policy already enforced by MCP tools/workflows. ## Dependencies Depends on #426 (skeleton) and functional child issues #427–#435 for meaningful integration tests; can land incrementally per page. - Foundation: #426 - Tracker: #425 ## Notes Add CI job alongside existing test harness; keep tests fast and hermetic.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Scaled-Tech-Consulting/Gitea-Tools#436