Files
MatchLiveTv/mobile/test/widget_test.dart
Emiliano Frascaro bba6df52c0 Initial commit: monorepo Match Live TV.
Rails API, app Flutter, infrastruttura Docker/MediaMTX, sito marketing e documentazione di deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 17:45:37 +02:00

24 lines
788 B
Dart

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