Repository navigation
Align browser checks with current controls and widget drawing - #2748
Merged
Merged
Conversation
leaf-agent
added a commit
that referenced
this pull request
Oct 13, 2026
The constrained margin scroll test prepends a 300 px scroller, then assumes its new target is visible. In [main CI run 38392091985](https://github.com/max-sixty/leaf/actions/runs/38392091985), browser scroll anchoring left the target and its correctly aligned margin row at `top: -106`; the visibility assertion failed before the test made its first inner scroll. This change brings the new target into view after rendering, then checks the same margin alignment and visibility through every scroll step. The `sticky-ancestor` case failed on current `main` before the change. After it, all three constrained-position cases passed locally (`uv run pytest -q -n0 'tests/browser/test_render_margin.py::test_observed_scroll_retains_the_seat_of_a_constrained_target'`). The run's other failures have separate repairs in #2748, #2749, #2752, and #2753. 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.
Five browser cases in main CI run 38359427323 stop on readings the current interface no longer supplies. This updates those checks while retaining their user-facing assertions: the Done control is named as an ask, a blanket answer stays hidden until the server reads the log, Escape folds reaction choices before the test opens the margin choices again, and initial playground drawing uses the current one-argument API.
Each of the five exact cases failed before this edit and passed afterward (
uv run pytest -q -n2with their node IDs). The change is limited to test expectations and setup; the remaining failures in that run are separate.