widget_test.dart 1.1 KB

123456789101112131415161718192021222324252627282930
  1. // This is a basic Flutter widget test.
  2. // To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter
  3. // provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to
  4. // find child widgets in the widget tree, read text, and verify that the values of widget properties
  5. // are correct.
  6. import 'package:flutter/material.dart';
  7. import 'package:flutter_test/flutter_test.dart';
  8. //import 'package:chewie/main.dart';
  9. void main() {
  10. // testWidgets('Counter increments smoke test', (WidgetTester tester) async {
  11. // // Build our app and trigger a frame.
  12. // await tester.pumpWidget(new MyApp());
  13. //
  14. // // Verify that our counter starts at 0.
  15. // expect(find.text('0'), findsOneWidget);
  16. // expect(find.text('1'), findsNothing);
  17. //
  18. // // Tap the '+' icon and trigger a frame.
  19. // await tester.tap(find.byIcon(Icons.add));
  20. // await tester.pump();
  21. //
  22. // // Verify that our counter has incremented.
  23. // expect(find.text('0'), findsNothing);
  24. // expect(find.text('1'), findsOneWidget);
  25. // });
  26. }