Verify transcript clears the header while scrolling

This commit is contained in:
2026-11-07 21:03:30 +00:00
parent 1da3da92a3
commit b9332dda0a
@@ -77,6 +77,10 @@ void main() {
Rect list() =>
tester.getRect(find.byKey(const ValueKey('chat-thread-s')));
Rect composer() => tester.getRect(find.byKey(const Key('chat-composer')));
Rect header() =>
tester.getRect(find.byKey(const Key('chat-thread-header')));
// The transcript has its own viewport below the complete header.
expect(list().top, greaterThanOrEqualTo(header().bottom));
// Nothing renders behind the composer: the viewport stops at its top.
expect(list().bottom, composer().top);
expect(composer().bottom, lessThanOrEqualTo(800));
@@ -109,6 +113,7 @@ void main() {
expect(tester.getRect(last).top, greaterThan(rested));
}
expect(list().bottom, composer().top);
expect(list().top, greaterThanOrEqualTo(header().bottom));
expect(tester.takeException(), isNull);
});