File-Drive-App-Frontend/test/widget_test.dart

13 lines
505 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:whats_drive_app/screens/splash_screen.dart';
void main() {
testWidgets('splash identifies the organization', (tester) async {
await tester.pumpWidget(const MaterialApp(home: SplashScreen()));
expect(find.text('Welcome to'), findsOneWidget);
expect(find.text('Metatroncube\nDigital Family'), findsOneWidget);
expect(find.byIcon(Icons.cloud_upload_rounded), findsOneWidget);
});
}