Repository navigation
test: name each dense-hint figure on the figure, not its svg - #6274
Merged
Merged
Conversation
#6248 stopped addressableLabel borrowing a descendant's aria-label, so a figure named only through its child <svg aria-label> now announces as a bare "figure". test_dense_selection_hints_stay_short_and_reach_an_atomic_visual built its sixty figures that way and expected "figure: Visual 0" after two Tabs. The fixture now declares each name with aria-label on the figure, which the figure's own accessible name still reads, and hides the drawing svg. The assertion and the behavior it protects are unchanged. Refs #3985
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_dense_selection_hints_stay_short_and_reach_an_atomic_visualhas failed on every push run since #6248, most recently run 44026724181. After two Tabs, the live region readsHint s: figure. Press Enter to choose.where the test expectsfigure: Visual 0. #6248 deliberately stoppedaddressableLabelfrom borrowing a descendant'saria-label, and this fixture named each<figure>only through its child<svg role="img" aria-label="Visual N">. So the figure now has no name, which is what #6248 intended.The fixture now declares each name where the page should state it:
aria-labelon the figure, which the element's own accessible name still reads (accessibleNaminginbrowser/runtime/addressable-names.js). The drawing svg isaria-hidden. The assertions are unchanged, so the test still checks that a two-key tail hint reaches the figure and announces its name. No product behavior moves.Verification:
git bisect runover the test, betweena747871a2(passes) andc2ec34fd4^(fails), namesedd00343b(Stop a bold line in prose naming its paragraph or list item, or grouping On Me under it #6248). Its parent passes.test_the_picker_s_close_ends_it_whatever_escape_would_take_back, pass locally. The test fails onorigin/mainwithout it.Refs #3985 — automated triage