Repository navigation
fix: stop pinning Send disc size in the whitespace test - #4766
Merged
Merged
Conversation
Preserve #4714’s intentional line-height Send face. The single-space test still checks its clear and hovered paint, clicks Send, and verifies exact whitespace in the event log, without imposing the superseded 28px geometry. Update the shared probe description to avoid promising a fixed size. Closes #4754
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 single-space composer test still required a 28px Send disc after #4714 deliberately made its face no taller than the text row under a mouse. Current main reproduces the reported 20px-versus-28px failure.
Remove the two fixed-size assertions and correct the probe's description. The test retains its resting and hovered paint checks, clicks the passage composer's Send, and verifies that each of the three composers records exactly one space. No layout or interaction behavior changes.
Validation: the reported test fails before this change and passes after it (
uv run pytest tests/browser/drafts/test_composer.py::test_a_single_space_is_message_content_in_every_composer -q -n0). Ruff lint and formatting checks pass for both edited files.Closes #4754 — automated triage