Skip to content

Fix chrome browser tests to wait for settled input - #3498

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-39635877365
Oct 21, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-39635877365

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The main CI run failed two browser contracts after 4,849 tests passed. This change keeps both contracts and makes their test setup match the input and rendering boundaries they assert.

The repaint test now reads the settled state before dispatching the press. A runtime pointerdown capture listener can queue repaint work before the test's later capture listener runs, so the old “before” reading was already after input. It still checks that the click leaves rendering unsettled and that the Threads view appears after rendering settles.

The Send-room test now waits for the long draft's scroll and size observers to settle before replacing it with a short draft. The old test started its next synthetic edit during the long draft's layout pass; the run reported a passive 4px shift during that transition. The assertions for room on the last line and on every scrolling line remain.

Both failed cases reproduced locally before the change. The three focused browser cases passed in three consecutive runs after it; the Chromium Send-room case passed three more consecutive runs. The change leaves the draft layout and message rendering from #3486 intact.

@leaf-agent
leaf-agent merged commit 8fe44c8 into main Oct 21, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-39635877365 branch October 21, 2026 17:54
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