Expect the Files toggle in the chat header actions pill
This commit is contained in:
@@ -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,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user