mirror of
https://github.com/openfoodfacts/smooth-app.git
synced 2025-08-06 18:25:11 +08:00
13 lines
428 B
Dart
13 lines
428 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:smooth_app/generic_lib/dialogs/smooth_alert_dialog.dart';
|
|
|
|
void main() {
|
|
testWidgets('Alert dialog can be created', (WidgetTester tester) async {
|
|
await tester.pumpWidget(
|
|
const MaterialApp(home: SmoothAlertDialog(body: Placeholder())),
|
|
);
|
|
expect(find.byType(SmoothAlertDialog), findsOneWidget);
|
|
});
|
|
}
|