@@ -4,6 +4,7 @@ import 'package:flutter_checks/flutter_checks.dart';
4
4
import 'package:flutter_test/flutter_test.dart' ;
5
5
import 'package:zulip/api/model/events.dart' ;
6
6
import 'package:zulip/model/store.dart' ;
7
+ import 'package:zulip/widgets/about_zulip.dart' ;
7
8
import 'package:zulip/widgets/app.dart' ;
8
9
import 'package:zulip/widgets/app_bar.dart' ;
9
10
import 'package:zulip/widgets/home.dart' ;
@@ -105,6 +106,9 @@ void main () {
105
106
final combinedFeedMenuIconFinder = find.descendant (
106
107
of: find.byType (BottomSheet ),
107
108
matching: find.byIcon (ZulipIcons .message_feed));
109
+ final aboutZulipMenuIconFinder = find.descendant (
110
+ of: find.byType (BottomSheet ),
111
+ matching: find.byIcon (Icons .info));
108
112
109
113
Future <void > tapOpenMenu (WidgetTester tester) async {
110
114
await tester.tap (find.byIcon (ZulipIcons .menu));
@@ -215,6 +219,16 @@ void main () {
215
219
check (find.byType (ProfilePage )).findsOne ();
216
220
check (find.text (eg.selfUser.fullName)).findsAny ();
217
221
});
222
+
223
+ testWidgets ('_AboutZulipButton' , (tester) async {
224
+ await prepare (tester);
225
+ await tapOpenMenu (tester);
226
+
227
+ await tester.tap (aboutZulipMenuIconFinder);
228
+ await tester.pump (Duration .zero); // tap the button
229
+ await tester.pump (const Duration (milliseconds: 250 )); // wait for animation
230
+ check (find.byType (AboutZulipPage )).findsOne ();
231
+ });
218
232
});
219
233
220
234
group ('_LoadingPlaceholderPage' , () {
0 commit comments