Repository navigation
test: ignore a heading's link anchor attribute when the aim sweep compares page markup - #5690
Merged
Merged
Conversation
… 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
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.
test_an_aimed_press_does_only_what_the_outline_promisedcompares the page's markup before and after each ⌥-click, with runtime paint removed. #5379 moved a heading's link anchor name out of inlineanchor-nameand into adata-lf-heading-linkattribute, which a heading wears only while the pointer is over it or focus sits on its link. The test still removed inlineanchor-namebut not the new attribute. The press doesn't reach the widget: in release-notes an<h2>droppeddata-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 removesdata-lf-heading-linkbeside 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 at754d6e3f0and pass with this change, as do the other cases of that journey test and the rest oftests/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 readPAGE_MARKUP.Closes #5681 — automated triage