File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -309,4 +309,19 @@ void main() {
309309 'subscriptions' : jsonEncode ([channel.name]),
310310 });
311311 });
312+
313+ testWidgets ('shows archive icon for archived channels' , (tester) async {
314+ final archivedChannel = eg.stream (isArchived: true );
315+ final activeChannel = eg.stream (isArchived: false );
316+ await setupAllChannelsPage (tester, channels: [archivedChannel, activeChannel]);
317+ await tester.pump ();
318+
319+ final archivedIcon = tester.widgetList <Icon >(find.byType (Icon ))
320+ .firstWhere ((icon) => icon.icon == ZulipIcons .archive);
321+ check (archivedIcon).isNotNull ();
322+
323+ final activeIcons = tester.widgetList <Icon >(find.byType (Icon ))
324+ .where ((icon) => icon.icon != ZulipIcons .archive);
325+ check (activeIcons).isNotEmpty ();
326+ });
312327}
You can’t perform that action at this time.
0 commit comments