Skip to content

test(examples-chat): aimock structured-markdown scenarios — Phase 2b#314

Merged
blove merged 5 commits into
mainfrom
claude/aimock-markdown-scenarios
May 14, 2026
Merged

test(examples-chat): aimock structured-markdown scenarios — Phase 2b#314
blove merged 5 commits into
mainfrom
claude/aimock-markdown-scenarios

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 14, 2026

Summary

Adds three Playwright scenarios that exercise structured markdown rendering through the Phase 2a harness:

  • Heading — asserts the assistant bubble renders an <h1> with the expected text.
  • Code fence — asserts a <pre><code> block with the expected snippet.
  • Bullet list — asserts a <ul> with three <li> in order.

Extends the harness runner to load a directory of fixture files (each can carry one or more match/response entries), so future scenario phases keep being small additive PRs that don't touch runner code.

Sits on Phase 2a (#309). Plan: docs/superpowers/plans/2026-05-14-aimock-markdown-scenarios.md.

Test plan

  • Runner unit tests pass: 3/3 (added one for directory mode)
  • Full Playwright suite passes locally: 4/4 (1 smoke + 3 markdown), confirmed across two consecutive runs
  • Existing Phase 2a smoke spec still passes after the directory-mode default switch
  • No production code touched
  • CI green on this PR

Notes for reviewers

  • The implementer hit one transient first-run flake on the bullet-list test that cleared on retry. Worth keeping an eye on if it recurs in CI; if so, raise the in-bubble assertion timeout or insert a brief settle wait. Not addressed in this PR — fix-on-demand is cheaper than over-correcting now.
  • The sendPrompt helper in markdown.spec.ts lives inline. If Phase 2c wants the same helper, extract then.

blove added 5 commits May 13, 2026 20:44
Three Playwright scenarios (heading, code fence, bullet list) on top of
the Phase 2a harness. Extends the runner to load a directory of fixture
files so future scenario phases can keep adding fixtures without
touching the runner.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

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

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment May 14, 2026 4:41am

Request Review

@blove blove merged commit 397737c into main May 14, 2026
16 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