Skip to content

test(examples-chat): aimock regenerate scenario#336

Merged
blove merged 1 commit into
mainfrom
claude/aimock-regenerate
May 15, 2026
Merged

test(examples-chat): aimock regenerate scenario#336
blove merged 1 commit into
mainfrom
claude/aimock-regenerate

Conversation

@blove

@blove blove commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds an end-to-end Playwright scenario for the regenerate flow through the harness:

  • Send a prompt, wait for the assistant bubble to finalize
  • Click the Regenerate response button
  • Wait for the regenerated assistant turn to finalize
  • Assert: conversation count stays at 1 user / 1 assistant (the assistant message is replaced in place, not appended)

Reuses the existing hi.json fixture — aimock returns the same response on the regenerated call; the invariant under test is the in-place replacement.

Sits on Phase 2e (#332).

Test plan

  • New spec passes solo locally: 1/1 in ~4.4s
  • Full suite passes 3/3 consecutive runs (8/8 specs each)
  • LangGraph log confirms a second Created run event after Regenerate click — agent really re-ran
  • No production code touched
  • CI green

Sends a prompt, waits for the assistant turn to finalize, clicks
Regenerate response, asserts conversation count stays at 1 user / 1
assistant after the regenerated turn finalizes. Reuses the existing
'say hi briefly' fixture — aimock returns the same response on the
regenerated call and the in-place replacement invariant is what we
assert against.
@vercel

vercel Bot commented May 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment May 15, 2026 8:13pm

Request Review

@blove blove merged commit 8f876ca into main May 15, 2026
16 checks passed
blove added a commit that referenced this pull request Jun 9, 2026
Sends a prompt, waits for the assistant turn to finalize, clicks
Regenerate response, asserts conversation count stays at 1 user / 1
assistant after the regenerated turn finalizes. Reuses the existing
'say hi briefly' fixture — aimock returns the same response on the
regenerated call and the in-place replacement invariant is what we
assert against.
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