Skip to content

test: ignore a heading's link anchor attribute when the aim sweep compares page markup - #5690

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-5681
Nov 7, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-5681

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_an_aimed_press_does_only_what_the_outline_promised compares the page's markup before and after each ⌥-click, with runtime paint removed. #5379 moved a heading's link anchor name out of inline anchor-name and into a data-lf-heading-link attribute, which a heading wears only while the pointer is over it or focus sits on its link. The test still removed inline anchor-name but not the new attribute. The press doesn't reach the widget: in release-notes an <h2> dropped data-lf-heading-link="1" between the two readings, and in ship-review an <h3> gained it. Those were the only differences in either case.

PAGE_MARKUP (tests/render_cases_layout.py) now removes data-lf-heading-link beside the inline anchor name it already removed. The assertion still catches any widget state an aimed press changes, and the log check after the sweep still catches a decision the press sends.

Verification: with --run-nightly, the release-notes and ship-review cases fail on main at 754d6e3f0 and pass with this change, as do the other cases of that journey test and the rest of tests/browser/test_render_aim.py. The one exception, test_design_mode_leaves_the_chrome_working, times out waiting for the "Exit Design mode" button the same way on main without this change. It doesn't read PAGE_MARKUP.

Closes #5681 — automated triage

… page markup

#5379 lends a heading `data-lf-heading-link` while its link shows, so a
heading under the pointer before an aimed press and not after it (or the
reverse) changed PAGE_MARKUP. test_an_aimed_press_does_only_what_the_outline_promised
read that as the press reaching a widget, failing for release-notes and
ship-review. The attribute is the anchor name's new carrier, so the
reading drops it beside the inline `anchor-name` it already drops; the
assertion still protects that an aimed press changes no widget state.

Closes #5681
@max-sixty
max-sixty merged commit 02cd6bd into main Nov 7, 2026
6 checks passed
@max-sixty
max-sixty deleted the fix/issue-5681 branch November 7, 2026 23:54
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_an_aimed_press_does_only_what_the_outline_promised fails for release-notes and ship-review since #5379

2 participants