mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
Add an iOS app clip sample (#538)
This commit is contained in:
20
ios_app_clip/test/widget_test.dart
Normal file
20
ios_app_clip/test/widget_test.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
// This is a basic Flutter widget test.
|
||||
//
|
||||
// To perform an interaction with a widget in your test, use the WidgetTester
|
||||
// utility that Flutter provides. 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:ios_app_clip/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Smoke test', (WidgetTester tester) async {
|
||||
// Build our app and trigger a frame.
|
||||
await tester.pumpWidget(Demo());
|
||||
|
||||
expect(find.byType(FlutterLogo), findsOneWidget);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user