Skip to content

test: drop obsolete composer control top alignment - #4988

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4928
Nov 1, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The dictation journey still required Dictate and Send to have identical top edges. #4714 deliberately made Send shorter under a mouse, centred on the last text row, so that assertion now reports a four-pixel difference despite the intended layout.

Remove the obsolete vertical box comparison. The journey retains horizontal placement, empty-to-typed control switching, sending and microphone restoration across the panel, widget and anchored composers. The existing panel row test separately checks glyph alignment before typing and through a wrapped draft. No product rendering changes.

Verified the reported journey fails before the change with assert 4 < 1; after the change, it and test_the_row_s_marks_and_presses_share_the_words_line pass (2 passed).

Closes #4928 — automated triage

The dictation journey compared the top edges of Dictate and Send. PR #4714 deliberately made Send one text line tall and centred it on the final row under a mouse, while Dictate keeps its taller box. Their top edges no longer express the shared placement guarantee.

Remove that shape assertion while retaining the horizontal placement and empty/typed/send journey across all composer surfaces. The existing panel row test checks glyph alignment through empty and wrapped draft states. The journey failed with the reported 4px difference before this change; both focused tests pass after it.

Closes #4928
@leaf-agent
leaf-agent merged commit 8b5b8fe into main Nov 1, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4928 branch November 1, 2026 19:53
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.

Empty and typed composer controls differ by four pixels vertically

1 participant