Skip to content

fix: keep datum travel fixture lookup consistent with rebuilt rows - #5103

Merged
leaf-agent merged 2 commits into
mainfrom
fix/issue-5086
Nov 2, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/issue-5086

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The datum-travel test replaces and removes a diff row directly during beforematch, but leaves the widget's address lookup pointing at the detached original. #4800 changed lfDataDatum to return retained row nodes as part of making diffs portable; the fixture's DOM-only replacement no longer models a consistent widget.

The fixture now resolves the widget's translated datum against its current rows. It still tests both replacement and removal during reveal, and additionally asserts that focus reaches the rebuilt row. Production behavior is unchanged.

The focused test reproduced the reported missing-row failure on main at 21e8c11e2, then passed with the fixture correction (5.36 seconds):

uv run pytest tests/browser/projection/test_code_review.py::test_datum_travel_resolves_the_destination_after_reveal -q -n0

Closes #5086 — automated triage

The fixture replaces and removes diff rows directly during beforematch. Since #4800 returns retained row nodes, that leaves its address hook pointing at the detached original. Let the fixture map the hook’s translated datum to its current row, and assert focus reaches the rebuilt row as well as its viewport position. Production navigation and diff behavior are unchanged.

Closes #5086
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Fixed the Ruff formatting failure in b95c6bd. The locator expression now matches the formatter's output; ruff format --check, ruff check, and git diff --check pass for the change. The failed head's Python tests passed in CI.

The new head is handed to the queued review and landing workflows under await_ci: false.

@leaf-agent
leaf-agent merged commit 72afa89 into main Nov 2, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5086 branch November 2, 2026 10:40
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.

Datum travel cannot find the diff row rebuilt during reveal

1 participant