Skip to content

Update wide layout tests for the 840px measure - #3798

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-40072986191-wide-layout-tests
Oct 24, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-40072986191-wide-layout-tests

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The main CI run failed three layout cases because their assertions still expected the old wide measure. #3788 changed --wide from 1080px to 840px and aligned wide blocks with the prose's start edge. The rail test now checks the current measure plus its page padding; the pictured-options test checks that widening gives both pictures more room without requiring the old 480px size.

The fourth failure in that run, a margin marker corner assertion, was updated by #3796 and passes on current main. The three changed cases failed before this patch and pass after it in focused Chromium runs (uv run pytest -q -n0 with those node IDs). The preceding main run at a550f98 passed these tests before #3788 landed.

@leaf-agent
leaf-agent merged commit 852d0b5 into main Oct 24, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-40072986191-wide-layout-tests branch October 24, 2026 08:15
leaf-agent added a commit that referenced this pull request Oct 24, 2026
The [failed main
run](https://github.com/max-sixty/leaf/actions/runs/40075126204) has one
remaining test failure on current `main`:
`test_reading_a_thread_moves_nothing_in_it`. After #3794 replaced the
unread rail with a New label beside the time, marking a reply read
removes that label and narrows only `.lf-msg-meta`. The thread's content
and reading position stay fixed. This change permits that metadata width
to close while still requiring its position and height, and every other
retained element's full box, to stay fixed.

The test originally allowed metadata to close sideways in #1025. The
allowance was lost when the old card view was replaced by the panel
thread view in #3100. The run's three other failures, which expected the
former wide layout size, are already corrected by #3798 on current
`main`.

The first PR check passed its Python tests but failed pre-commit because
Ruff added a missing blank line between imports in
`tests/journeys/test_thread_titles.py`. That formatting correction is
included here; the focused `ruff-check` hook passes locally.

Verification: the read-position test failed before this change and
passes after it. All four failing cases from the main run pass locally
as six parameterized cases with `uv run pytest -q -n0`.

---------

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