Skip to content

test_presses_and_fills_leave_no_element_naming_stale_keys: file tree rows repaint aria-keyshortcuts since #6927 #7020

Done

Description

@leaf-agent

tests/journeys/test_render_navigation.py::test_presses_and_fills_leave_no_element_naming_stale_keys has failed in its [file-tree], [file-tree-input] and [deploy-config] cases since #6927 ("Take focused and currentLocationIn out of the package API"). Each case fails because a file tree row's aria-keyshortcuts is repainted after a press elsewhere: button [commands] aria-keyshortcuts painted None, repainted 'Enter Space ArrowUp ArrowDown …'. In [deploy-config], the row is [docs / runbooks], after a press on the panel's page menu. git bisect run over aa34b6b22..e7d5808f3 on [file-tree] names b9cea933c (#6927). [deploy-config] passes at b9cea933c^ and fails at b9cea933c. All three fail on Linux at current main (c076ce9c9), and failed on Linux test in scheduled run 45378690705.

The repainted value means the file tree's rows now take keys they didn't name when the page first painted, or the reverse. That can be a product regression in how the tree learns where focus is, since #6927 replaced focused and currentLocationIn. It may also be the sweep reading a change it should allow. Undiagnosed beyond the bisect.

Cause of a failure tracked in #7012.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    I opened a fix in #7028. It's a product defect in the file tree package, not a sweep that's too strict. Each row the user focused kept the tree's shared declaration, whose when reads whether any row holds focus. Since #6927, Leaf rereads a scope's rows only around the node focus left and the node it reached, so rows focused earlier kept stale aria-keyshortcuts. The widget now withdraws the declaration from a row when focus leaves it, so only the focused row carries keys. All three cases fail on main and pass on the branch. CI and landing for #7028 are with tend-land.

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