Skip to content

fix: stop pinning Send disc size in the whitespace test - #4766

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4754
Oct 30, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4754

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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

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
@leaf-agent
leaf-agent merged commit 5a13406 into main Oct 30, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4754 branch October 30, 2026 10:48
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.

Single-space composer check expects a 28px disc but reads 20px

1 participant