Skip to content

Update the focus-ring sweep's samples for the On me mark, command reference rows and folded contents - #5253

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5179
Nov 3, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5179

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_each_sampled_focus_ring_is_shown_whole_in_its_surface has failed in the scheduled ci run on Linux and macOS since run 41432142330. Three of its samples were out of date with changes that were meant to happen, and each stopped the sweep in turn. This PR updates the three samples, changes no product code, and leaves every surface's ring assertion in place.

  • On me (Focus-ring sweep cannot focus the On me control #5179): Widen the page composer over the On me mark as it opens, not at the first key #4715 deliberately puts the On me mark aside while the caret is in the panel's field (quickHidden in browser/runtime/floating-panel.js). Before focusing each sample, the sampler pressed Tab so that the focus would count as keyboard focus. From the leaf button, that Tab landed in the field, which hid .lf-fp-quick, and .lf-fp-on-user could not take focus. The sampler now presses Shift instead. Shift sets the browser's keyboard modality for :focus-visible, which Leaf's data-lf-focus-visible follows (visibleFocus in browser/runtime/focus.js), and it moves no focus. I checked in Chromium that focus() after a Shift press matches :focus-visible, and after a click alone it does not.
  • Command reference rows: Build every press by a role, and check that each one is #5118 builds these rows by the row role and deleted their own [data-lf-focus-visible] rule, so their ring now comes from the floor rule. The sample now expects FLOOR_RING.
  • Contents link: the feature gallery's lf-toc stands in the reading column, not in a sidebar track, so its outline is a folded native disclosure (lf-toc.js header, #measure). The selector's :visible matched no link, so the locator waited out its 120 s timeout before the runtime's reveal could open the disclosure. Without :visible, reveal opens the outline and the link's ring is measured.

Verification: on a local run at main 89482e4a5, the test failed exactly as in CI. After each fix, the next stale sample surfaced. With all three fixes the whole test passes (1 passed in 451.67s, -n0). This PR's CI runs the edited journey on the rebased head.

Closes #5179 — automated triage

…erence rows and folded contents

The sweep stopped at three samples that later changes made stale:

- On me: #4715 puts the mark aside while the caret is in the panel's field.
  The sampler pressed Tab before focusing each sample to make that focus
  keyboard focus, and from the leaf button that Tab stood in the field, so the
  mark was hidden and could not take focus. It now presses Shift, which sets
  keyboard modality and moves nothing.
- Command reference rows: #5118 built them by the row role and deleted their
  own ring rule, so their ring is the floor ring.
- Contents link: the gallery's lf-toc stands in the column, where its outline
  is a folded native disclosure. `:visible` matched no link, so the sample
  waited out its timeout instead of reaching the runtime's reveal, which opens
  the disclosure.

No product behavior changes.

Closes #5179
@leaf-agent
leaf-agent merged commit 47075e7 into main Nov 3, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5179 branch November 3, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Focus-ring sweep cannot focus the On me control

1 participant