25 lines
761 B
Dart
25 lines
761 B
Dart
|
import 'package:flutter_test/flutter_test.dart';
|
||
|
import 'package:integration_test/integration_test.dart';
|
||
|
|
||
|
import 'package:prasule/main.dart';
|
||
|
|
||
|
void main() {
|
||
|
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||
|
group("Test Setup screen:", () {
|
||
|
testWidgets('First-time setup', (WidgetTester tester) async {
|
||
|
// Build our app and trigger a frame.
|
||
|
await tester.pumpWidget(const MyApp());
|
||
|
|
||
|
expect(find.text('Welcome!'), findsOneWidget);
|
||
|
|
||
|
// // Tap the '+' icon and trigger a frame.
|
||
|
// await tester.tap(find.byIcon(Icons.add));
|
||
|
// await tester.pump();
|
||
|
|
||
|
// // Verify that our counter has incremented.
|
||
|
// expect(find.text('0'), findsNothing);
|
||
|
// expect(find.text('1'), findsOneWidget);
|
||
|
});
|
||
|
});
|
||
|
}
|