1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/null_safety/null_safe_app/test/widget_test.dart
2021-06-07 20:53:25 +10:00

15 lines
449 B
Dart

// This is a basic widget test that tests just the good app code.
import 'package:flutter_test/flutter_test.dart';
import 'package:null_safe_app/goodapp.dart';
void main() {
testWidgets('App smoke test', (tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const GoodMyApp());
// Verify that we have a forecast, or a managed failure.
expect(find.textContaining('Temperature'), findsOneWidget);
});
}