Skip to content

Commit

Permalink
Await enter text
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mabe committed Jul 28, 2023
1 parent c563202 commit f0ca939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/workout_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void main() {

// Reduce the number of exercises by 1.
await tester.tap(find.byIcon(Icons.remove));
await tester.pump();
await tester.pumpAndSettle();

// Reduce the number of exercises by 1.
await tester.tap(find.byIcon(Icons.remove));
Expand All @@ -70,7 +70,7 @@ void main() {
matching: find.byType(TextFormField),
);

tester.enterText(exercise, 'testing $i');
await tester.enterText(exercise, 'testing $i');

expect(find.text('testing $i'), findsOneWidget);
}
Expand Down

0 comments on commit f0ca939

Please sign in to comment.