Expect the Files toggle in the chat header actions pill

This commit is contained in:
2026-11-07 01:08:30 +00:00
parent 2c1fa52e86
commit 81955059de
@@ -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,
);
});