Initial commit
This commit is contained in:
19
test/widget_test.dart
Normal file
19
test/widget_test.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:doormile/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('App boots and advances from splash to onboarding',
|
||||
(WidgetTester tester) async {
|
||||
await tester.pumpWidget(const DoormileApp());
|
||||
|
||||
// Splash shows the brand wordmark.
|
||||
expect(find.text('Doormile'), findsWidgets);
|
||||
|
||||
// Let the splash auto-navigation timer fire, then settle on onboarding.
|
||||
await tester.pump(const Duration(seconds: 3));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Send a parcel in one touch'), findsOneWidget);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user