From 162971636e5be112929cf4c3bc73310879e08af8 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Mon, 23 Nov 2020 16:13:13 +0530 Subject: [PATCH] fix: Fixed tests --- test/src/message_action_modal_test.dart | 1 + test/src/message_reaction_modal_test.dart | 2 ++ 2 files changed, 3 insertions(+) diff --git a/test/src/message_action_modal_test.dart b/test/src/message_action_modal_test.dart index b186ab91..97709e70 100644 --- a/test/src/message_action_modal_test.dart +++ b/test/src/message_action_modal_test.dart @@ -85,6 +85,7 @@ void main() { ); await tester.pump(); + await tester.pump(Duration(milliseconds: 1000)); expect(find.byKey(Key('MessageWidget')), findsOneWidget); expect(find.byIcon(StreamIcons.sorting_up), findsNothing); expect(find.byIcon(StreamIcons.edit), findsNothing); diff --git a/test/src/message_reaction_modal_test.dart b/test/src/message_reaction_modal_test.dart index 4cf3dafa..622b57c3 100644 --- a/test/src/message_reaction_modal_test.dart +++ b/test/src/message_reaction_modal_test.dart @@ -39,6 +39,8 @@ void main() { ), ); + await tester.pump(Duration(milliseconds: 1000)); + expect(find.byKey(Key('MessageWidget')), findsOneWidget); expect(find.byIcon(StreamIcons.thumbs_up_reaction), findsOneWidget); },