Repository navigation
Update thread card test for marker focus closing Threads - #3178
Merged
Merged
Conversation
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 remaining failure in main CI run 39312200383 is an outdated browser test expectation. #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
cfocuses 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
mainbefore 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 currentmainafter #3170 moved their targets clear of the expanded comment card.