import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:match_live_tv/shared/widgets/live_badge.dart';
import 'package:match_live_tv/shared/widgets/match_live_wordmark.dart';

void main() {
  testWidgets('MatchLiveWordmark renders', (tester) async {
    await tester.pumpWidget(
      const MaterialApp(home: Scaffold(body: MatchLiveWordmark())),
    );
    expect(find.text('MATCH'), findsOneWidget);
    expect(find.text('LIVE'), findsOneWidget);
  });

  testWidgets('LiveBadge shows timer', (tester) async {
    await tester.pumpWidget(
      const MaterialApp(
        home: Scaffold(body: LiveBadge(elapsed: Duration(minutes: 45, seconds: 35))),
      ),
    );
    expect(find.textContaining('IN DIRETTA'), findsOneWidget);
  });
}
