22 lines
626 B
Dart
22 lines
626 B
Dart
// This is a basic Flutter widget test for the Retail POS app.
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:retail/app.dart';
|
|
|
|
void main() {
|
|
testWidgets('App loads successfully', (WidgetTester tester) async {
|
|
// Build our app and trigger a frame.
|
|
await tester.pumpWidget(
|
|
const ProviderScope(
|
|
child: RetailApp(),
|
|
),
|
|
);
|
|
|
|
// Verify that the app loads with bottom navigation
|
|
await tester.pumpAndSettle();
|
|
expect(find.byType(NavigationBar), findsOneWidget);
|
|
});
|
|
}
|