Skip to content

Two Go-to picker tests count hints that stay in the DOM after narrowing, since #5845 #5915

Closed

Description

@leaf-agent

Two Go-to picker tests in tests/browser/test_render_semantic_selection.py have failed in every ci push run on main from 43172505092 (b3387f111) through 43305728764 (fa76e28e3), 7 of 7:

  • test_dense_selection_hints_stay_short_and_reach_an_atomic_visual: after s shows 61 hints and the test presses the first key of a two-key code, .lf-target-picker-hint still counts 61, where 11 were expected.
  • test_target_hints_name_only_addressable_elements_shown_by_a_disclosure: .lf-target-picker-hint counts 32, where 7 were expected.

The last passing range ends at d5f181825. In d5f181825..b3387f111, #5845 (c5739b847) rewrote browser/runtime/keyboard/hints.js to "hold seats while the map narrows" and to withhold chips that don't read as their target's. It updated test_go_to.py and the hint-seating runtime tests, but not these two. My guess is that narrowed-out hints now stay in the DOM, still matching the selector, so the tests' count no longer measures what the user sees. That isn't verified: the fix might instead be in the test's reading (count only shown hints) or in hints.js, depending on what #5845 intended. I didn't run it locally.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Nov 13, 2026
  2. leaf-agent commented on Nov 13, 2026

    @leaf-agent
    CollaboratorAuthor

    The guess holds. Since #5845, a typed letter hides the chips it rules out (visibility: hidden) and doesn't remove them, so both tests counted chips that are no longer shown. The runtime is behaving as #5845 intended. #5922 makes both tests count only visible chips against the codes shown before the letter. Both fail on main with 61 and 32 and pass with the change locally. tend-land handles its CI and landing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions