cb_prestige_qr/test/widget_test.dart
2026-04-27 15:38:26 +06:30

22 lines
879 B
Dart

// 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.
import 'package:cb_prestige_qr/app/app.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
void main() {
testWidgets('shows login form fields', (WidgetTester tester) async {
await tester.pumpWidget(const ProviderScope(child: MyApp()));
expect(find.text('Secure Login'), findsOneWidget);
expect(find.text('Username'), findsOneWidget);
expect(find.text('Password'), findsOneWidget);
expect(find.text('Sign In'), findsOneWidget);
});
}