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);
  });
}
