14 lines
437 B
Dart
14 lines
437 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:sales_chat/services/api_service.dart';
|
|
import 'package:sales_chat/main.dart';
|
|
|
|
void main() {
|
|
testWidgets('App starts with login page', (WidgetTester tester) async {
|
|
final apiService = ApiService();
|
|
await tester.pumpWidget(MyApp(apiService: apiService));
|
|
|
|
// The app should start with the login page
|
|
expect(find.text('Sales Chat'), findsWidgets);
|
|
});
|
|
}
|