Repository navigation
test: read question obligation rings from their overlays - #3815
Merged
Merged
Conversation
The clipped-ring repair moved lf-ask obligation paint to ::after. Keep the page-map, keyboard-scope, and current-location assertions on the actual ring so they still protect the selected location and shared band.
leaf-agent
commented
Oct 24, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
The no-double-ring assertion after Tab in test_the_ring_says_where_the_user_is_located still reads the question element's outline. ask.css now suppresses that outline unconditionally, so this assertion passes even if the ::after obligation ring remains visible around the focused option. Read the overlay's outline there too, so the test continues to protect the one-ring behavior.
leaf-agent
added a commit
that referenced
this pull request
Oct 24, 2026
The browser write watcher now recognizes CodeMirror's unchanged line-decoration class writes inside `leaf-text`. After #3813 removed the last-line decoration, CodeMirror still reapplies the live preview's `lf-face-p` class while reconciling an editor update. The watcher reported that upstream restatement as a teardown error in nine comment and thread tests on [main CI run 40108257103](https://github.com/max-sixty/leaf/actions/runs/40108257103). The exception covers CodeMirror line classes in `leaf-text`; other class writes remain watched. The representative draft test reproduced the teardown error before this change and passed afterward. All 13 focused cases reported by that run pass locally on this branch. The run's three ring assertions were corrected separately by merged #3815. --------- 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 repair in #3812 moved a question's obligation ring to its
::afteroverlay so the ring stays visible at a scroll boundary. Three browser tests still inspected the question element's old outline, causing main CI run 40105315608 to fail although the ring is drawn. This PR reads the overlay's outline in the page-map and current-location checks, and asks the ring-rule probe for the overlay in the keyboard-scope check. Their assertions still verify the selected obligation, its accent color, and the rule that draws its ring.All three tests failed before the change and passed afterward with the same focused
uv run pytest -q -n0selection.Refs #3812.