Skip to content

Keep the read-position test stable when New clears - #3799

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

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

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

The failed main run 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.

@leaf-agent
leaf-agent merged commit 03f9dd1 into main Oct 24, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-40075126204 branch October 24, 2026 09:20
leaf-agent added a commit that referenced this pull request Oct 24, 2026
The [main CI
run](https://github.com/max-sixty/leaf/actions/runs/40077300734) left
one browser failure after #3799 fixed its read-position and Ruff
failures:
`test_the_undo_rows_age_follows_the_clock_while_the_page_stays_open`
stayed at “just now” after its clock jumped five minutes. The test
installed Playwright’s clock after navigation, when Leaf had already
created its repaint interval. Install the clock before navigation so
that interval is controlled from creation and the test still checks that
a page left open updates Undo’s age without a new log read.

The case failed in that main run and passes on this branch in four
focused Chromium runs (`uv run pytest -q -n0
tests/browser/test_render_outbox.py::test_the_undo_rows_age_follows_the_clock_while_the_page_stays_open`).
The focused Ruff hook and `git diff --check` pass. The failing run’s
read-position and Ruff failures were fixed by merged #3799.

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Oct 27, 2026
The read-position test treated an empty metadata wrapper's box as
content that must stay fixed. #4323 intentionally stopped repeating the
preceding message's age, so reading a reply can remove its only metadata
child, the New dot. The wrapper collapses from 6×6 to 0×0 while the
message header, body and remaining content stay in place.

Compare the retained metadata children and surrounding elements at their
full geometry, without constraining the wrapper. This preserves both the
intentional timestamp removal and the reading-position guarantee; no
runtime or visible behavior changes.

The exact browser test fails on current main with the reported
`522,2708,6,6 -> 522,2711,0,0` diagnostic and passes with this change.
Earlier run 40436400169 passed before #4323; run 40448023036 records the
failure after it. #3799 previously adjusted this same assertion for the
New label's horizontal disappearance; checking the retained content
avoids extending that box-specific tolerance again.

Closes #4348 — automated triage

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