Skip to content

test(e2e): scope the acknowledgment assertion to its panel - #113

Closed
TusanHomichi wants to merge 1 commit into
mainfrom
claude/e2e-ack-scope
Closed

TusanHomichi wants to merge 1 commit into
mainfrom
claude/e2e-ack-scope

Conversation

@TusanHomichi

Copy link
Copy Markdown
Member

Primary Issue

Closes #112

Problem And Outcome

drafts.spec.ts:451 checked getByText('Taylor Trainee acknowledged receipt', { exact: false }) after Taylor acknowledged version 2. The page's Version history already shows version 1's "…acknowledged receipt with a response", so the assertion:

Now the assertion looks only in the Acknowledgment panel, so it waits for this version's acknowledgment.

Verification

  • The test passes against a built binary.
  • Negative control: with the "Record acknowledgment" click removed, it fails (element(s) not found). The old locator would have passed.
  • Full local proof: to be added below.

Correction rung: 2. The test now proves the act it describes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts


Generated by Claude Code

The version history already showed version 1's "acknowledged receipt with
a response", so the assertion usually passed before the version 2
acknowledgment existed, and failed in strict mode when both were rendered.
It now looks only in the Acknowledgment panel.

Closes #112

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T00:15:56.481652Z d9c4e1e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Member Author

Closing as superseded: this change was ported into #111 (needed because the same e2e assertion failed that PR's proof), and #111 merged as e8f4e42 with Closes #112. Main now carries the identical diff, so this PR would merge nothing.


Generated by Claude Code

@TusanHomichi
TusanHomichi deleted the claude/e2e-ack-scope branch October 15, 2026 15:55
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.

test(e2e): drafts.spec.ts acknowledgment assertion is ambiguous and can pass before the act

2 participants