Repository navigation
Update wide layout tests for the 840px measure - #3798
Merged
Merged
Conversation
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]>
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 main CI run failed three layout cases because their assertions still expected the old
widemeasure. #3788 changed--widefrom 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 -n0with those node IDs). The preceding main run at a550f98 passed these tests before #3788 landed.