Skip to content

Commit

Permalink
fix(test): resolve error on test in GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Lzyct committed Oct 9, 2024
1 parent a0e7777 commit 043e33b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
flutter-version: '3.24.3' # you can also specify exact version of flutter
#flutter-version: '3.24.3' # you can also specify exact version of flutter

# Check Flutter version
- name: Check Flutter version
Expand Down
4 changes: 3 additions & 1 deletion test/core/app_route_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ void main() {

// Navigate to dashboard
await tester.pumpAndSettle();
await tester.pumpAndSettle();
await tester.pumpAndSettle();

// expect(find.byType(MainPage), findsOneWidget);
expect(find.byType(MainPage), findsOneWidget);
expect(find.byType(DashboardPage), findsOneWidget);
});
}

0 comments on commit 043e33b

Please sign in to comment.