23 lines
893 B
Dart
Executable File
23 lines
893 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);
|
|
});
|
|
}
|