Repository navigation
test: expect the playground card's and the panel field's focus rings where #6110 and #5963 moved them - #6193
Merged
Merged
Conversation
…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
This was referenced Nov 16, 2026
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.   **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]>
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.
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.
lf-playground input[type=radio]now resolves first to the Banner format card. Stand a choice's words as one paragraph on the line beside them, and keep a tall playground rail's actions whole #6110 made a candidate card wear its radio's ring, because the label's own ring "ran through its words" (its description). The sample still expected the.lf-choicelabel's ring. It now takes the rail's Tone radio (#tone), the dense choice it was added for in Keep focus rings clear of the neighbours that paint after them #3111, where the label still wears the ring. A second sample checks that the format card (#format) wears thelf-playground-choicering..lf-fp-field, so Send stays put. The sample expected.lf-fp-field .lf-compose-fieldand now expects[data-lf-control-focus-visible] > .lf-fp-field.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-asksections and a trace mark. These were hidden behind the stale samples and are a separate cause, filed as #6192.Closes #6182 — automated triage