fix: Fixed tests
This commit is contained in:
@@ -85,6 +85,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
await tester.pump();
|
await tester.pump();
|
||||||
|
|
||||||
|
await tester.pump(Duration(milliseconds: 1000));
|
||||||
expect(find.byKey(Key('MessageWidget')), findsOneWidget);
|
expect(find.byKey(Key('MessageWidget')), findsOneWidget);
|
||||||
expect(find.byIcon(StreamIcons.sorting_up), findsNothing);
|
expect(find.byIcon(StreamIcons.sorting_up), findsNothing);
|
||||||
expect(find.byIcon(StreamIcons.edit), findsNothing);
|
expect(find.byIcon(StreamIcons.edit), findsNothing);
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ void main() {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
await tester.pump(Duration(milliseconds: 1000));
|
||||||
|
|
||||||
expect(find.byKey(Key('MessageWidget')), findsOneWidget);
|
expect(find.byKey(Key('MessageWidget')), findsOneWidget);
|
||||||
expect(find.byIcon(StreamIcons.thumbs_up_reaction), findsOneWidget);
|
expect(find.byIcon(StreamIcons.thumbs_up_reaction), findsOneWidget);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user