Skip to content

Studio test coverage: Playwright journeys, apps/web unit gaps, CI job #1776

Open
1 of 1 issue completed

Description

@peppescg

Parent: #1774. Supersedes three empty placeholders that cover the same ground — #1769 ("set up playwright and mocks"), #1770 ("set up playwright"), #1771 ("set up end-to-end mock system"). Close them in favour of this issue, or re-parent one here; do not run four tracks for one piece of work.

Scope

Cover Studio at the browser level and close the apps/web unit gap.

  • Playwright, reusing the conventions already in the repo (sdk/typescript/e2e/browser/playwright.config.ts) and the playwright: resolver already wired in .actrace.yml, so every journey is citable as a verify: proof from an acceptance plan.
  • Journeys: unauthenticated → login → workspace; chat send → streamed SSE run → mid-run controls (cancel, steer, approval verdict); stale run control refused; capability-gated schedules empty state; knowledge inventory; settings; global search palette and the shortcuts reference; connection-lost banner; a rejected CSRF mutation.
  • Mocks: the browser suite runs offline — mock runtime mode, no live provider, no network egress. Where the journey needs a real daemon, spawn bin/mecated --mock as test(studio): integration suite over the real SDK against mecated --mock #1767's integration suite already does, and skip loudly when the binary is absent.
  • Unit gap. Bootstrap lands 26 server proofs; test(studio): integration suite over the real SDK against mecated --mock #1767 adds 7 integration tests over the real SDK — but apps/web has only 3 (auth-gate, connection-status-banner, api-client). Bring the web workspace to real coverage with Vitest + Testing Library across the feature stacks (Studio chat: sessions, streamed runs, controls, chat workspace #1747–Studio global search palette and keyboard-shortcuts reference #1751).
  • CI: a Playwright job, or an extension of the existing studio job — cached browsers, traces and screenshots as failure artifacts, and the same studio relevance category so it only runs when apps/ changes.

Human decisions

  • Its own CI job, or an extension of studio? (browser download cost vs job-matrix clarity)
  • An enforced coverage floor, or are named verify: proofs per acceptance criterion the only gate?
  • Does the browser suite ever run against a real mecated, or strictly mock mode?

Contract

Expected Routine by the #1767 precedent (tests and a CI step only; no behaviour, contract, or interface change) — but new e2e infrastructure plus a CI job may warrant Bounded. Classified at plan time per docs/development-process.md.

Verification

task studio:check, the new Playwright task, task lint:actions, and task ac-trace resolving every playwright: and vitest: proof named by the plans of #1747–#1751. Sequenced after the structure move (#1777) so no proof is written against a path that is about to move.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    enhancement
    WebUI
    on Sep 22, 2026
  2. kantord commented on Oct 13, 2026

    @kantord
    Member

    #1769, #1770 and #1771 were folded into this issue and closed as duplicates, since their scope (Playwright runner and CI job, offline mock system via bin/mecated --mock, skip loudly when the binary is absent) overlaps what is described here. Fully or partially written by an AI agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    WebUIcienhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions