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>
This commit is contained in:
23
mobile/test/widget_test.dart
Normal file
23
mobile/test/widget_test.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user