Skip to content

test: expect the playground card's and the panel field's focus rings where #6110 and #5963 moved them - #6193

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-6182
Nov 16, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-6182

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The focus-ring sweep held two samples that later product changes had made stale. This PR updates both to where those changes deliberately moved the ring.

No product code changes. Locally on Linux, before the change the test failed at notification-playground's radio with the message in #6182. With the change, every sample passes, both new expectations included. The test still fails on eight ring faults on lf-ask sections and a trace mark. These were hidden behind the stale samples and are a separate cause, filed as #6192.

Closes #6182 — automated triage

…where #6110 and #5963 moved them

The focus-ring sweep sampled notification-playground's first radio, which
is now the Banner format card, and expected the `.lf-choice` label's ring.
#6110 made a candidate card wear its radio's ring, because the label's own
ring ran through the card's words. The sample now takes the rail's Tone
radio, the dense choice it was added for, and a second sample expects the
format card's `lf-playground-choice` ring.

The sweep's next stop, the panel field on triage-board, expected the ring
on `.lf-compose-field`. #5963 moved it to the field's slot `.lf-fp-field`
so Send stays put, and the sample now expects that rule.

Closes #6182
@max-sixty
max-sixty merged commit d4fe7bb into main Nov 16, 2026
6 checks passed
@max-sixty
max-sixty deleted the fix/issue-6182 branch November 16, 2026 17:44
leaf-agent added a commit that referenced this pull request Nov 16, 2026
…ept two ring cuts #5306 and #5614 chose (#6200)

After #6193's sample updates,
`test_each_sampled_focus_ring_is_shown_whole_in_its_surface` still
reported eight ring faults, which earlier failing samples had hidden.
They have three causes. This PR fixes the one that is a real defect. For
the other two, it updates the ring reader to accept outcomes that #5306
and #5614 chose on purpose. With this change the journey passes on main
`3bc561561`. Without it, a tab walk over data-explorer, code-comparison
and review-a-fix on that commit still reports all three kinds.

**The trace's metadata scroller covered its own ring (review-a-fix).**
`.lf-trace-metadata` wears its ring one band inside its edge, but it had
no padding. Once #5306 drew every mark as the box's own outline, the
scrolled words painted over the ring's left run. The scroller now starts
its words a ring's room (5px) in, as the token's rule for an inset ring
expects (`tokens.css`, "Where it stands"). On screen, this changes the
review-a-fix trace's metadata pane: its text moves 5px right, and its
focused ring's left edge shows whole.

![Before: text over the ring's left
edge](https://github.com/user-attachments/assets/f3f9918a-30fe-4c45-b222-385aab073acf)
![After: the ring's left edge
clear](https://github.com/user-attachments/assets/9b9f5aa0-527b-45b7-981f-007bc1195d9e)

**A full-height question's mark runs below the window (data-explorer,
notification-playground, shadow-scale).** #5306 says so in its
description: a question filling a full-height workspace wears its ring
3px outside itself and reaches the window's foot, "so the ring's bottom
run falls below the window". `browser/AGENTS.md` rules out padding the
page for a mark. The reader now skips that bottom run when the ring
belongs to a box that isn't focused, isn't fixed, and ends the page at
the window's foot. The focused control's own ring is still held to the
foot. So is a fixed box:
`test_the_ring_reading_sees_and_measures_a_ring_cast_as_a_shadow` plants
an unfocused fixed box there and still passes.

**A focus preview covers the question around its control
(code-comparison, command-hub, motion-playground).** Since #5614, a
keyboard step onto a control shows its preview. The preview stands clear
of the control and of the controls the user could work next, and may
cover the rest of the page. Here the "Show instruction" and "Copy
Markdown" previews lie over the enclosing question's location ring. The
reader no longer samples another box's ring under an open `#lf-preview`,
but it still reads the focused control's own ring there.

<details><summary>How each cause was dated</summary>

The test's last pass in a scheduled run was `7cbf67854` (Oct 27). Runs
from Oct 28 to Nov 3 failed on earlier samples, and the Nov 4 run
already listed the full-height and trace faults. I ran `git bisect run`
over a tab walk of the affected examples:

- data-explorer and review-a-fix: first bad commit `ecf4dc10d` (#5306),
clean at its parent `5bdc6fa9b`.
- code-comparison: clean at `ecf4dc10d`, first bad commit `4248d1f4c`
(#5614).

Checks run on the branch: the journey itself,
`tests/browser/controls/test_rings.py` (27 passed), and
`tests/browser/test_render_playwright_trace.py`. In that last file,
`test_trace_tree_opened_by_the_browser_keeps_its_match` failed once
under `-n 3` on this branch. It also fails under `-n 3` on unchanged
main, with the same row position (480 against a 12–111 band), so this
change doesn't cause it.

</details>

Closes #6192 — automated triage

Co-authored-by: leaf-agent <[email protected]>
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.

test_each_sampled_focus_ring_is_shown_whole_in_its_surface: notification-playground's radio rings land on lf-playground-choice since #6110

2 participants