Repository navigation
test: count only shown target-picker chips after a typed letter narrows the map - #5922
Merged
Merged
Conversation
…ws the map #5845 made a typed letter hide the chips it rules out (visibility: hidden, keyboard/chip-seats.js) instead of removing them, so no chip the user is reading moves as they type. Two picker tests still counted every `.lf-target-picker-hint` in the DOM after the first key of a two-key code, so they read 61 and 32 where 11 and 7 chips are shown. They now count the chips still visible, against the codes shown before the letter. The behavior they protect, that a prefix narrows the map to the codes that begin with it, is unchanged. Closes #5915
leaf-agent
commented
Nov 13, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
#5897 makes the same edit to these two assertions: it switches both to .lf-target-picker-hint:visible, but counts against every chip's code (codes) where this PR counts against only the chips shown before the letter (held). Whichever lands second conflicts on both hunks. The version that lands should be this one, because it still holds if a chip is hidden before the letter for lack of a seat. #5897 can then drop its copy of these hunks when it rebases. This PR needs no change. Both tests pass locally on the merge ref.
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.
#5845 changed how the target picker narrows: a typed letter now hides the chips it rules out (
visibility: hiddeninbrowser/runtime/keyboard/chip-seats.js) and leaves them in the DOM, so no chip the user is reading moves as they type. That PR updatedtest_go_to.pyand the hint-seating runtime tests to read only shown chips, but not two picker tests intests/browser/test_render_semantic_selection.py. Those tests still counted every.lf-target-picker-hintafter the first key of a two-key code, so they saw 61 and 32 where 11 and 7 chips are shown. Everycipush run on main has failed on them sinceb3387f111.Both tests now count chips matching
:visibleagainst the codes shown before the letter. What they protect is unchanged: a prefix narrows the map to the codes that begin with it, the continued chip marks its first key as pressed, and the full code still acts. The runtime is unchanged. This only aligns the tests with the behavior #5845 chose.Locally, both tests fail on main with the counts above and pass with this change.
Closes #5915 — automated triage