Verify channel boundary and row cache sharing

Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
Tom Brow
2026-10-18 14:12:37 -07:00
parent 1b85d34a91
commit 80f1ac55fa

View File

@@ -76,6 +76,15 @@ void timelineCalendarBuilderTests() {
expect(padding.padding.resolve(TextDirection.ltr).bottom, 0);
}
// Observe one settled channel rebuild, excluding initial hydration builds.
conversions.clear();
tester.element(find.byType(ChannelDetailPage)).markNeedsBuild();
await tester.pump();
final channelCaches = conversions
.where((counts) => counts.isNotEmpty)
.toList();
expect(channelCaches, hasLength(1));
expect(channelCaches.single.keys, containsAll([1000, 1060, 1120]));
expectEndSpacing('message-row-$threadIdThreadDashRoot');
expectEndSpacing('system-message-row-calendar-system');
final head = formatTimeline([root]).single;