Initial commit: imajViewer Flutter Linux image viewer
This commit is contained in:
15
test/widget_test.dart
Normal file
15
test/widget_test.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:imajviewer/app.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('App renders empty state', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(const ImajViewerApp());
|
||||
|
||||
// Pump pending timers (Future.delayed in initState + polling)
|
||||
await tester.pump(const Duration(milliseconds: 500));
|
||||
|
||||
// Should show drag-drop hint text
|
||||
expect(find.textContaining('sürükleyin'), findsOneWidget);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user