From 81955059ded87f3a4882928340935c7408c8b07a Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Sat, 7 Nov 2026 01:08:30 +0000 Subject: [PATCH] Expect the Files toggle in the chat header actions pill --- .../chat/conversation/chat_floating_chrome_test.dart | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 e0a83e1f..b845fde9 100644 --- a/app/test/features/chat/conversation/chat_floating_chrome_test.dart +++ b/app/test/features/chat/conversation/chat_floating_chrome_test.dart @@ -154,10 +154,18 @@ void main() { ); final header = find.byKey(const Key('chat-thread-header')); expect(find.byKey(const Key('chat-mode')), findsNothing); - // Only the round Back and the title pill: no (empty) actions pill. + // The round Back, the title pill and the actions pill, which always + // carries the Files toggle, so it is never drawn empty. expect( find.descendant(of: header, matching: find.byType(SegmentedPill)), - findsNWidgets(2), + findsNWidgets(3), + ); + expect( + find.descendant( + of: header, + matching: find.bySemanticsIdentifier('chat-files-toggle'), + ), + findsOneWidget, ); });