Repository navigation
Align nightly Threads tests with panel reflow and landing band - #1241
Conversation
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.
|
@leaf-agent In
|
|
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. |
…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]>
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:
twalk selects the next thread, thencfocuses 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 pytestwith their node IDs,-q -n0);uv run pre-commit run --files tests/test_render_controls.py tests/test_render_projection.pyalso passes.