This commit is contained in:
kejaro committed 2026-09-27 13:51:25 +01:00
commit ffc2051e20
80 files changed
+2915

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:mobile_app/app.dart';
void main() {
testWidgets('App smoke test - renders dashboard, navigates to settings',
(WidgetTester tester) async {
await tester.pumpWidget(const MobileApp());
await tester.pumpAndSettle();
// Verify Dashboard is visible
expect(find.text('Dashboard'), findsWidgets);
expect(find.text('Task Progress'), findsOneWidget);
expect(find.text('Add Task'), findsOneWidget);
// Switch to Settings tab
final settingsNav = find.text('Settings');
expect(settingsNav, findsWidgets);
await tester.tap(settingsNav.first);
await tester.pumpAndSettle();
// Verify Settings is displayed
expect(find.text('Appearance'), findsOneWidget);
expect(find.text('Supported Platforms'), findsOneWidget);
expect(find.text('Android & iOS (iPhone/iPad)'), findsOneWidget);
// Switch back to Dashboard
final dashboardNav = find.text('Dashboard');
await tester.tap(dashboardNav.first);
await tester.pumpAndSettle();
expect(find.text('Task Progress'), findsOneWidget);
});
}