Repository navigation
test: show a press reached a tab panel by its click, not by focus - #6386
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.
#6353 changed where a press on an open tab panel's contents lands. It now goes to the nearest other focusable box around the panel, or nowhere, instead of focusing the panel through its
tabindex=0.test_a_preview_leaves_a_region_the_user_works_in_reachable[panel-*]still proved that the press reached the panel by expecting the panel to take focus. It failed on main in push run 44269587200, in Chromium and Firefox, with#regioninactive.The test checks that a margin preview doesn't cover a region the user works in. For the panel case it now checks that the click itself landed on
#region. A preview covering that point would have received the click, so the check still fails in that case. The code and frame cases keep their focus checks, since #6353 leaves both alone: the code is a scroll stop Leaf lends, and the frame's field takes focus. Only the test changes, and #6353's behavior stays as its author intended.Verification: both panel cases fail on main locally with the CI message. All six cases of the test pass on this branch.
Refs #3985 — automated triage