Files
kryz-go-flutter/test/widget_test.dart
T
robot 0257937859
CI / Lint (pull_request) Successful in 19m19s
CI / Test (pull_request) Failing after 19m19s
CI / Build Android (pull_request) Skipped
CI / Build iOS (pull_request) Skipped
style: apply dart formatting fixes across lib/ and test/
11 files had formatting inconsistencies that caused the
--set-exit-if-changed gate to fail. Automated formatting
via dart format now passes cleanly.
2026-08-01 11:06:17 +00:00

29 lines
931 B
Dart
Executable File

// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:kryz_go_flutter/main.dart';
void main() {
testWidgets('App renders title and controls', (WidgetTester tester) async {
await tester.pumpWidget(const MyApp());
await tester.pump();
expect(find.text('KRYZ Go!'), findsWidgets);
expect(
find.widgetWithIcon(ElevatedButton, Icons.play_arrow_rounded),
findsOneWidget,
);
expect(
find.widgetWithIcon(ElevatedButton, Icons.stop_rounded),
findsOneWidget,
);
});
}