Skip to content

Align visual review journey with stable case identity - #1205

Merged
max-sixty merged 2 commits into
mainfrom
fix/ci-36216495039
Sep 26, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/ci-36216495039

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The nightly visual review journey expected a comment anchor without identity and expected its thread to become “Earlier data” after the source changed. #1184 made visual review case IDs stable subject identities, so the emitted anchor now includes that ID and the thread stays attached. This updates both assertions to the current contract.

The failed nightly run reported the extra identity field. The focused test reproduced that failure locally, then exposed the outdated thread expectation after the first assertion was corrected. uv run pytest tests/test_render_visual_review_journey.py -q -n0 now passes (2 tests).

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new negative assertion also passes if the comment detaches completely: a detached quote has no “Earlier data” badge. This journey's claim is that the comment stays attached to the same case after the data replacement. Assert the quote's “Jump to this passage” state, which requires a resolved, current anchor. I’ll apply this to the bot branch after the review.

@max-sixty
max-sixty merged commit a050526 into main Sep 26, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/ci-36216495039 branch September 26, 2026 06:29
max-sixty pushed a commit that referenced this pull request Sep 26, 2026
The nightly option-addition test still expected `c` to open a new
comment composer from a focused option. PR #1204 changed the shortcut to
enter the Reply box in the thread card already visible beside that
option. The test now checks that destination and verifies that the
shortcut neither selects an option nor opens a second composer.

The [failed nightly
run](https://github.com/max-sixty/leaf/actions/runs/36217032553) had one
other failure in the visual review journey. PR #1205 already corrected
that expectation on main; its focused case passes locally. Before this
change, the option test reproduced the remaining failure. Afterward, `uv
run pytest tests/test_render_options_addition.py -q -n0` passes (9
tests).

Co-authored-by: leaf-agent <[email protected]>
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.

2 participants