cb_prestige_qr/test/widget_test.dart

23 lines
867 B
Dart
Raw Normal View History

2026-04-09 06:47:03 +00:00
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
2026-04-09 10:06:31 +00:00
import 'package:flutter_test/flutter_test.dart';
import 'package:cb_prestige_qr/main.dart';
void main() {
testWidgets('shows login form fields', (WidgetTester tester) async {
await tester.pumpWidget(const MyApp());
expect(find.text('Login'), findsOneWidget);
expect(find.text('Phone Number'), findsOneWidget);
expect(find.text('User ID (Username)'), findsOneWidget);
expect(find.text('Password'), findsOneWidget);
expect(find.text('Sign In'), findsOneWidget);
});
}