Two message-paths tests record a viewport before painting, as the frame does

Unset, the viewport reads as one row, which is now a short frame that leaves the
graph's caption out, and the caption is what these two check.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jean-Pierre MartineauandClaude Opus 5.5 committed 2026-09-30 21:17:41 -04:00
1 parent 390a0a1616
commit a5b53122ad
1 file changed
+2
+2
View File
@@ -323,6 +323,7 @@ def test_an_outgoing_message_ends_on_its_recipient_not_on_us() -> None:
source="Homestead",
destination="Bob",
)
screen.note_viewport(40) # the frame records this before every real paint
body = _plain(screen.render_body(72))
assert "Hilltop-Repeater" in body
assert body.count("Homestead") == 1, "our name belongs at one end of a send, not both"
@@ -345,6 +346,7 @@ def test_a_received_message_still_ends_on_us() -> None:
summary="heard once",
source="Alice",
)
screen.note_viewport(40) # the frame records this before every real paint
body = _plain(screen.render_body(72))
assert "Alice" in body and "Homestead" in body
assert "origin → you" in body