File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 55// gestures. You can also use WidgetTester to find child widgets in the widget
66// tree, read text, and verify that the values of widget properties are correct.
77
8- import 'package:flutter/material.dart' ;
98import 'package:flutter_test/flutter_test.dart' ;
109import 'package:ouds_flutter_demo/main.dart' ;
1110
1211void main () {
13- testWidgets ('Counter increments smoke test ' , (WidgetTester tester) async {
12+ testWidgets ('OudsApplication ' , (WidgetTester tester) async {
1413 // Build our app and trigger a frame.
1514 await tester.pumpWidget (const OudsApplication ());
16-
17- // Verify that our counter starts at 0.
18- expect (find.text ('0' ), findsOneWidget);
19- expect (find.text ('1' ), findsNothing);
20-
21- // Tap the '+' icon and trigger a frame.
22- await tester.tap (find.byIcon (Icons .add));
23- await tester.pump ();
24-
25- // Verify that our counter has incremented.
26- expect (find.text ('0' ), findsNothing);
27- expect (find.text ('1' ), findsOneWidget);
2815 });
2916}
Original file line number Diff line number Diff line change 1- void main () {}
1+ import 'package:flutter_test/flutter_test.dart' ;
2+
3+ void main () {
4+ test ('fake test when loading ouds_flutter lib' , () {
5+ expect (true , isTrue);
6+ });
7+ }
You can’t perform that action at this time.
0 commit comments