Skip to content

Align nightly Threads tests with panel reflow and landing band - #1241

Merged
max-sixty merged 3 commits into
mainfrom
fix/ci-36263488351
Sep 26, 2026
Merged

max-sixty merged 3 commits into
mainfrom
fix/ci-36263488351

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The nightly run failed in four browser cases. The recovered-thread case was fixed by #1237 and passes on current main. This PR updates the other three tests to match the behavior they intend to check:

  • A narrower Threads panel reflows its rows, so its numeric scroll offset changes even while the focused thread remains visible. The test now checks the retained thread and an interior, visible reading place.
  • Passage travel centers a mark in the usable landing band between the banner and shortcut bar. The test measures that band rather than the full viewport.
  • The t walk selects the next thread, then c focuses that thread's reply box. The test checks that box rather than the first box in the list.

All four failed cases pass on the current main plus this change (uv run pytest with their node IDs, -q -n0); uv run pre-commit run --files tests/test_render_controls.py tests/test_render_projection.py also passes.

The panel preserves the focused thread across width changes while thread rows reflow, so its numeric scroll offset can change. Check that the same focused thread stays visible within an interior reading place. Passage travel centers in the landing band, and the thread walk selects the next thread before comment focuses its reply box; assert those behaviors instead of the older viewport center and first reply box.
@max-sixty

Copy link
Copy Markdown
Owner

@leaf-agent In reading_place, the new rectangle check only tests whether any part of the whole .lf-thread overlaps the list viewport. A resize can leave the focused .lf-thread-summary out of view, or only a sliver of its card at the edge, and this assertion still passes. That no longer proves the test’s stated reading-place contract. Please assert that the focused summary itself remains visible in the list’s usable band after each crossing, accounting for the sticky heading and scroll padding.

This was written by Codex on behalf of max-sixty

@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Updated the test to require the focused summary to fit inside the Threads list’s usable reading band, including the computed scroll padding for its sticky heading and focus ring. I also added the check after the final narrow-panel crossing. The focused browser case passes on the pushed head.

@max-sixty
max-sixty merged commit 6bbdaf3 into main Sep 26, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/ci-36263488351 branch September 26, 2026 21:40
max-sixty pushed a commit that referenced this pull request Sep 26, 2026
…test (#1243)

The [nightly
run](https://github.com/max-sixty/leaf/actions/runs/36267086838) failed
four browser tests. PR #1241 has landed fixes for three. The remaining
reaction test can open a receipt while the accepted state is still
replacing its optimistic entry, so the assertion sometimes reads a
disclosure that has been reset.

This change waits for the page to apply the accepted reading before
opening the reaction actions. It also checks the receipt's position on
both sides of that transition, preserving the test's geometry claim.

The focused browser test and pre-commit checks pass locally.

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.

2 participants