Repository navigation
Keep browser test targets clear of the comment card - #3170
Merged
Merged
Conversation
The painted comment card introduced by #3157 covers the neighboring test button and passage after writing starts. Move those test targets into free page space so the tests still exercise focus ownership and draft persistence through real presses.
leaf-agent
added a commit
that referenced
this pull request
Oct 19, 2026
The remaining failure in [main CI run 39312200383](https://github.com/max-sixty/leaf/actions/runs/39312200383) is an outdated browser test expectation. [#3164](#3164) made keyboard focus close Threads when the panel covers its destination. In this fixture the margin marker is under Threads, so focusing it closes the panel; the old test then waits for a thread inside that closed panel to expand. Update the existing case to follow the visible route: focus exposes the marker, Enter opens its page card, and `c` focuses that card’s reply box. The note route still verifies that a target beside the panel expands its thread in Threads. This keeps both user paths covered without changing the runtime behavior chosen in #3164. The marker case failed on current `main` before the change; both parameters pass locally after it (`uv run pytest tests/browser/navigation/test_threads.py::test_a_target_offers_c_in_the_thread_card_left_on_screen -q -n0`). The run’s other two failing tests pass on current `main` after [#3170](#3170) moved their targets clear of the expanded comment card. 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 two remaining browser failures in main CI run 39295617122 came from test presses landing on the comment card rather than their intended page targets. #3157 deliberately made the card’s painted rows a drag grip while writing; the adjacent button and passage in these fixtures now sit behind that grip.
Move the newer button above the composer’s area and give the draft test’s second passage its own clear line. The tests still use real presses to check that a later control keeps focus and that each passage keeps its own unsent words. Both cases failed on current
mainbefore this change and pass after it; the focus test’s other parameter also passes.The run’s other five failed cases are addressed by merged #3161, #3162, and #3163; those cases passed in the focused current-main run.