Skip to content

Keep selection and Ask panel browser tests on their intended targets - #2651

Merged
leaf-agent merged 2 commits into
mainfrom
fix/ci-38291812775
Oct 12, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The main CI run failed three browser tests after #2635. #2639 already repaired the Threads dialog visibility assertion. This PR repairs the other two tests while preserving the behaviors they check.

The selection test clicked a heading that brought the page back toward the top, then dragged toward text outside the viewport. The browser extended that selection into the next paragraph. The test now brings the target paragraph into view before dragging. The wide Ask test assumed its answer list stood mostly under the open Threads panel; the breakout change placed it in the Ask's wide span instead. Its fixture now positions the list on the panel side, so pressing q still has to reveal a covered answer list.

All five focused cases pass on this branch: the selection test, all three Ask postures, and the Threads naming test (uv run pytest -q -n0 with those node IDs). The two changed assertions each failed on current main before the fixture changes.

The block breakout change moved the navigation fixture’s answer list into the same wide span as its Ask, so the panel no longer covered most of that list. Place the list in the right side of the Ask to keep testing the covered destination. After dismissing the selection bar, scroll the next paragraph into view before dragging its text; otherwise the offscreen pointer extends the selection into the following paragraph.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test job is red because ruff format rejects the new options_style expression. The Python tests passed. I'll apply the formatting change and push a new head.

Comment thread tests/browser/test_render_navigation.py Resolved
@leaf-agent
leaf-agent merged commit 967b246 into main Oct 12, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38291812775 branch October 12, 2026 20:43
leaf-agent added a commit that referenced this pull request Oct 12, 2026
The main [CI
run](https://github.com/max-sixty/leaf/actions/runs/38300979990) failed
three browser cases. #2651 has since repaired the selection and wide Ask
cases; both pass on current main. This change repairs the remaining
trace playback case: its test advanced a paused virtual clock by a fixed
span, while the player waits for image decoding before advancing. When
decoding outlasted that span, the clock stayed paused and the expected
Play state never arrived.

The test now resumes the clock until playback completes, then pauses it
before checking the next pointer and keyboard gestures. The player and
its user-facing behavior are unchanged. The failed case passes with this
change, as do the two cases repaired by #2651 (`uv run pytest -q -n0` on
the three node IDs). Local `ruff` was unavailable; PR CI will run lint.

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