test(diary) App launch test

This commit is contained in:
2024-03-07 11:57:27 +03:00
parent 2c5e9a1749
commit 7b20842853

15
test/launch_test.dart Normal file
View File

@@ -0,0 +1,15 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:eatvio_app/main.dart' as app;
void main() {
testWidgets('Smoke test', (WidgetTester tester) async {
// Запустить приложение
app.main();
// Подождать, пока приложение загрузится
await tester.pumpAndSettle();
// Проверить, что нет ошибок
expect(tester.takeException(), isNull);
});
}