Skip to content

test: check the contents fixture's replay moved the geometry, not that it grew 200px - #5210

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

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_generated_page_interface_reconciles_before_semantic_interaction has failed on every ci run on main since #4872 merged. That PR made a draft read as Markdown and deliberately joined soft line breaks. The fixture's replayed draft is sixteen lines joined by single newlines, so it now renders as one wrapped paragraph. Replay therefore grows the first section by 136px (authored span 139.19, presented 275.13), short of the fixed > authored_span + 200 threshold.

What the test protects still holds: the first presented paint's contents span matches the live geometry (span == approx(actual, abs=1)) rather than the stale authored span. The growth assertion was only a positive control for that check, and the 200px figure was arbitrary. It now asks for exactly what the reconciliation check needs: the replayed geometry must differ from the authored span by more than the 1px tolerance. Otherwise a stale span could pass. #4872's behavior and the interface are untouched.

Verification: the test passes on #4872's parent and fails at #4872 with the same numbers CI reports (assert 275.125 > (139.1875 + 200)). It fails on current main and passes with this change.

Closes #5164 — automated triage

…t it grew 200px

#4872 made a draft read as Markdown, so the fixture's sixteen lines joined
by single newlines now render as one wrapped paragraph. Replay grows the
first section by 136px (139 to 275), short of the fixed +200 threshold,
and the test failed on every main run since. It passes on #4872's parent
and fails at #4872.

The behavior the test protects is unchanged: the first presented paint's
contents span matches the live geometry rather than the stale authored
span. The positive control now asks only what that check needs, that the
replayed geometry differs from the authored span by more than the 1px
span tolerance.

Closes #5164
@leaf-agent
leaf-agent merged commit 683c63e into main Nov 3, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5164 branch November 3, 2026 12:18
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.

Contents interface reconciliation grows less than the fixture expects

1 participant