Repository navigation
fix: check diff file anchors on their headers - #4963
Merged
Merged
Conversation
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.
Three browser tests still read file identity from the outer diff container. #4759 intentionally moved that identity to the file header so authored notes keep their own prose anchors. The tests now inspect the header and retain their checks of file comments, stored source coordinates, call-tree navigation and precise line selection. Runtime behavior is unchanged.
The original unloaded-file assertion reproduced on main
7844f4d04. With the corrected locators, all four focused checks pass:test_a_manifest_diff_can_comment_on_one_unloaded_file,test_call_diff_projects_stable_commentable_rows,test_a_data_bound_diff_aims_and_selects_one_source_line, andtest_author_notes_follow_source_lines_and_survive_deferred_refresh(24.23s). Ruff lint, formatting andgit diff --checkpass.Closes #4903 — automated triage