Skip to content

test: read question obligation rings from their overlays - #3815

Merged
leaf-agent merged 2 commits into
mainfrom
fix/ci-40105315608
Oct 24, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/ci-40105315608

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The focus-ring repair in #3812 moved a question's obligation ring to its ::after overlay 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 -n0 selection.

Refs #3812.

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 leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
leaf-agent merged commit bc447a8 into main Oct 24, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-40105315608 branch October 24, 2026 16:20
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]>
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.

1 participant