Skip to content

test(cockpit-chat): aimock e2e for c-generative-ui + c-a2ui (Task #4 final chat slice)#479

Merged
blove merged 2 commits into
mainfrom
claude/chat-surface-recorded
May 19, 2026
Merged

test(cockpit-chat): aimock e2e for c-generative-ui + c-a2ui (Task #4 final chat slice)#479
blove merged 2 commits into
mainfrom
claude/chat-surface-recorded

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 19, 2026

Summary

Final 2 deferred surface caps from Task #4. Fixtures recorded via the per-cap record scripts shipped in PR #478. Brings cockpit-chat aimock coverage to 10 of 11 caps.

Caps shipped

  • c-generative-ui: 2 fixture entries covering the welcome-chip prompts ("Show me a dashboard…" + "Filter to only the cancelled…"). Spec asserts `` primitive mounts after the dashboard prompt.
  • c-a2ui: 2 fixture entries covering "I want to fly LAX to JFK" + "I want to fly SFO to SEA". Spec asserts `` mounts.

Files

  • New scaffolds (5 files × 2 caps) via `scripts/generate-aimock-scaffold.ts`.
  • Fixtures recorded via the per-cap record scripts (live LLM calls captured through aimock `--record` mode).
  • project.json e2e targets added, ci.yml matrix entries added.

Status: cockpit-chat aimock coverage

Cap Coverage
c-interrupts, c-tool-calls, c-subagents pre-existing
c-messages, c-input, c-threads, c-timeline, c-theming added earlier this arc
c-generative-ui, c-a2ui this PR
c-debug documented as not applicable (viewer-only demo)

Test plan

  • CI `Cockpit — e2e` summary passes; 2 new matrix expansions green.
  • CI `Cockpit — build / test` passes (cockpit-e2e-wiring spec auto-discovers).

🤖 Generated with Claude Code

Final 2 deferred surface caps from Task #4. Fixtures recorded via
the per-cap record scripts shipped in PR #478:

- c-generative-ui: 2 entries (dashboard + filter prompts). render_spec
  + query_recent_disruptions tool calls captured. Spec asserts the
  chat-generative-ui primitive mounts post-dashboard prompt.
- c-a2ui: 2 entries (LAX-JFK + SFO-SEA prompts). BookingFormSpec tool
  calls captured. Spec asserts a2ui-surface primitive mounts.

Both caps now in the cockpit-e2e matrix. Brings chat-cap aimock
coverage to 10 of 11 caps (c-debug remains documented-as-skipped
per PR #478 — viewer-only demo).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment May 19, 2026 9:13pm

Request Review

The dashboard spec renders a TREE of <chat-generative-ui> hosts (one per
node in the dashboard layout — 5 for the airline-operations spec), so
the bare `locator('chat-generative-ui')` hits Playwright's strict-mode
requirement that toBeVisible() target a single element.

Use .first().toBeVisible() to assert the root mounts; additionally
assert count > 0 so the tree-mount assertion stays meaningful if the
spec ever shrinks to a single-node dashboard.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@blove blove merged commit 0833bcb into main May 19, 2026
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant