Skip to content

Commit

Permalink
[#1] Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nkhanh44 committed Jul 31, 2023
1 parent 0ada4a4 commit 8aab257
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions integration_test/my_home_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ void main() {
.pumpWidget(TestUtil.pumpWidgetWithShellApp(const HomeScreen()));
await tester.pumpAndSettle();

expect(find.widgetWithText(AppBar, 'Survey Flutter testing'),
findsOneWidget);
expect(
find.widgetWithText(AppBar, 'Survey Flutter testing'), findsOneWidget);
expect(find.text('This is only for testing'), findsOneWidget);
});
}
4 changes: 2 additions & 2 deletions integration_test/real_app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ void main() {
await tester.pumpWidget(TestUtil.pumpWidgetWithRealApp('/'));
await tester.pumpAndSettle();

expect(find.widgetWithText(AppBar, 'Survey Flutter testing'),
findsOneWidget);
expect(
find.widgetWithText(AppBar, 'Survey Flutter testing'), findsOneWidget);
expect(find.text('This is only for testing'), findsOneWidget);
});
}
8 changes: 6 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ class HomeScreen extends StatelessWidget {
),
),
const SizedBox(height: 24),
Text(AppLocalizations.of(context)!.hello),
Text(AppLocalizations.of(context)!.hello),
Text(
FlutterConfig.get('SECRET'),
style: const TextStyle(color: Colors.black, fontSize: 24),
),
const SizedBox(height: 24),
ElevatedButton(
onPressed: () => context.go('/$routePathSecondScreen'),
Expand All @@ -104,4 +108,4 @@ class SecondScreen extends StatelessWidget {
),
);
}
}
}

0 comments on commit 8aab257

Please sign in to comment.