From b9332dda0ad017ffc49d28b3cb662a926877e98d Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Sat, 7 Nov 2026 21:03:30 +0000 Subject: [PATCH] Verify transcript clears the header while scrolling --- .../chat/conversation/chat_floating_chrome_test.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/test/features/chat/conversation/chat_floating_chrome_test.dart b/app/test/features/chat/conversation/chat_floating_chrome_test.dart index d8723419..9a4a98b0 100644 --- a/app/test/features/chat/conversation/chat_floating_chrome_test.dart +++ b/app/test/features/chat/conversation/chat_floating_chrome_test.dart @@ -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); });