Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa committed Feb 29, 2024
1 parent a4efefe commit 05cf630
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions uni/test/unit/view/Pages/exams_page_view_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void main() async {
final providers = [ChangeNotifierProvider(create: (_) => examProvider)];

await tester.pumpWidget(testableWidget(widget, providers: providers));
await tester.pump();
await tester.pumpAndSettle();

expect(find.byKey(Key(firstExam.toString())), findsOneWidget);
expect(find.byKey(Key('$firstExam-exam')), findsOneWidget);
Expand Down Expand Up @@ -93,7 +93,7 @@ void main() async {
final providers = [ChangeNotifierProvider(create: (_) => examProvider)];

await tester.pumpWidget(testableWidget(widget, providers: providers));
await tester.pump();
await tester.pumpAndSettle();

expect(
find.byKey(Key(examList.map((ex) => ex.toString()).join())),
Expand Down Expand Up @@ -139,7 +139,7 @@ void main() async {
final providers = [ChangeNotifierProvider(create: (_) => examProvider)];

await tester.pumpWidget(testableWidget(widget, providers: providers));
await tester.pump();
await tester.pumpAndSettle();

expect(find.byKey(Key(firstExam.toString())), findsOneWidget);
expect(find.byKey(Key(secondExam.toString())), findsOneWidget);
Expand Down Expand Up @@ -208,7 +208,7 @@ void main() async {
final providers = [ChangeNotifierProvider(create: (_) => examProvider)];

await tester.pumpWidget(testableWidget(widget, providers: providers));
await tester.pump();
await tester.pumpAndSettle();

expect(find.byKey(Key(firstDayKey)), findsOneWidget);
expect(find.byKey(Key(secondDayKey)), findsOneWidget);
Expand Down

0 comments on commit 05cf630

Please sign in to comment.