import 'package:flutter_test/flutter_test.dart'; import 'package:focus_seed/src/app/focus_seed_app.dart'; import 'package:shared_preferences/shared_preferences.dart'; void main() { testWidgets('Focus Seed opens to the today screen', (tester) async { SharedPreferences.setMockInitialValues({}); await tester.pumpWidget(const FocusSeedApp()); await tester.pumpAndSettle(); expect(find.text('Focus Seed'), findsOneWidget); expect(find.text('Today anchor'), findsOneWidget); expect(find.text('Start focus'), findsOneWidget); }); }