优化
This commit is contained in:
13
client/flutter/test/widget_test.dart
Normal file
13
client/flutter/test/widget_test.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user