Repository navigation
Description
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 theplaywright:resolver already wired in.actrace.yml, so every journey is citable as averify: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 --mockas 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/webhas 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
studiojob — cached browsers, traces and screenshots as failure artifacts, and the samestudiorelevance category so it only runs whenapps/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.
Activity
kantord commentedon Oct 13, 2026
#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.