Skip to content

Keep margin tracking test clear of the banner boundary - #1977

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-37577351935-margin-test
Oct 7, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-37577351935-margin-test

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The margin-card tracking test now scrolls far enough to exercise the card following its source while keeping the source below the banner boundary. In the failed main run, the test scrolled the quoted line to 44px while the card correctly stopped at 50px: commentBoundary uses the visible window beneath the banner with an 8px gap. That arrangement tested boundary clamping while asserting source tracking. The revised scroll leaves room for both tracking readings; the later reading still checks clamping at the foot.

uv run pytest tests/test_render_margin.py::test_a_thread_uses_a_free_margin_and_tracks_its_source -q -n0 failed at the source-tracking assertion before the change and passed afterward. Other failures in the run have separate causes.

@leaf-agent
leaf-agent merged commit 4085f4a into main Oct 7, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-37577351935-margin-test branch October 7, 2026 08:20
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