update tests

This commit is contained in:
Salvatore Giordano
2020-11-24 12:55:37 +01:00
parent f1b7c6f39f
commit 800dd02aa2
+8 -8
View File
@@ -42,10 +42,10 @@ void main() {
await tester.pump(Duration(milliseconds: 1000));
expect(find.byKey(Key('MessageWidget')), findsOneWidget);
expect(find.byIcon(StreamIcons.sorting_up), findsOneWidget);
expect(find.byIcon(StreamIcons.edit), findsOneWidget);
expect(find.byIcon(StreamIcons.delete), findsOneWidget);
expect(find.byIcon(StreamIcons.copy), findsOneWidget);
expect(find.text('Thread reply'), findsOneWidget);
expect(find.text('Edit message'), findsOneWidget);
expect(find.text('Delete message'), findsOneWidget);
expect(find.text('Copy message'), findsOneWidget);
},
);
testWidgets(
@@ -87,10 +87,10 @@ void main() {
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);
expect(find.byIcon(StreamIcons.delete), findsNothing);
expect(find.byIcon(StreamIcons.copy), findsNothing);
expect(find.text('Thread reply'), findsNothing);
expect(find.text('Edit message'), findsNothing);
expect(find.text('Delete message'), findsNothing);
expect(find.text('Copy message'), findsNothing);
},
);
}