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, ); });