Skip to content

Keep browser test targets clear of the comment card - #3170

Merged
leaf-agent merged 2 commits into
mainfrom
fix/ci-39295617122
Oct 19, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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 main before 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.

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
leaf-agent merged commit 48c0a49 into main Oct 19, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-39295617122 branch October 19, 2026 20:39
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]>
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