Repository navigation
fix: keep datum travel fixture lookup consistent with rebuilt rows - #5103
Merged
Merged
Conversation
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
Collaborator
Author
|
Fixed the Ruff formatting failure in b95c6bd. The locator expression now matches the formatter's output; The new head is handed to the queued review and landing workflows under |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 changedlfDataDatumto 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):Closes #5086 — automated triage