38 lines
1.2 KiB
Dart
38 lines
1.2 KiB
Dart
// This is a basic Flutter integration 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:integration_test/integration_test.dart';
|
|
|
|
import 'package:flutter_app/main.dart' as app;
|
|
|
|
void main() {
|
|
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
|
_testMain();
|
|
}
|
|
|
|
void _testMain() {
|
|
testWidgets('New profile pane smoke test', (WidgetTester tester) async {
|
|
app.main();
|
|
|
|
await tester.pump();
|
|
await tester.pump();
|
|
await tester.pump();
|
|
//await tester.pumpAndSettle(Duration(seconds: 3), EnginePhase.sendSemanticsUpdate, Duration(seconds: 30));
|
|
|
|
await tester.tap(find.byIcon(Icons.add));
|
|
await tester.pump();
|
|
await tester.pump();
|
|
await tester.pump();
|
|
|
|
// Verify that our counter has incremented.
|
|
// expect(find.text('0'), findsNothing);
|
|
expect(find.byKey(Key('addprofile')), findsOneWidget);
|
|
});
|
|
}
|