Repository navigation
test: check the contents fixture's replay moved the geometry, not that it grew 200px - #5210
Merged
Merged
Conversation
…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
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.
test_generated_page_interface_reconciles_before_semantic_interactionhas failed on everycirun 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 + 200threshold.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