void main() {
testWidgets('Deve salvar um contato', (tester) async {
final mockContactDao = MockContactDao();
await tester.pumpWidget(BytebankApp(
contactDao: mockContactDao,
));
final dashboard = find.byType(Dashboard);
expect(dashboard, findsOneWidget);
final transferFeatureItem = find.byWidgetPredicate(
(widget) => featureItemMatcher(widget, 'Transferir', Icons.monetization_on));
expect(transferFeatureItem, findsOneWidget);
await tester.tap(transferFeatureItem);
await tester.pump();
await tester.pump();
final contactsList = find.byType(ContactsList);
expect(contactsList, findsOneWidget);
final floatNC = find.widgetWithIcon(FloatingActionButton, Icons.add);
expect(floatNC, findsOneWidget);
//await tester.tap(floatNC);
// await tester.pumpAndSettle();
//
// final contactForm = find.byType(ContactForm);
// expect(contactForm, findsOneWidget);
});
}
Alguém me ajuda, por favor kkk
await tester.pump(); await tester.pump(); com os dois pump o teste roda, já fiz vários testes o Mock está ali e o pumpAndSettle continua com erro...