veilid/veilid-flutter/example/integration_test/app_test.dart

41 lines
1.1 KiB
Dart
Raw Normal View History

2024-03-02 17:45:26 -05:00
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'fixtures.dart';
import 'test_veilid_config.dart';
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
group('VeilidConfig', () {
final fixture = DefaultFixture();
setUp(fixture.setUp);
tearDown(fixture.tearDown);
test('test VeilidConfig defaults', testVeilidConfigDefaults);
});
// group('end-to-end test', () {
// testWidgets('tap on the floating action button, verify counter',
// (tester) async {
// // Load app widget.
// await tester.pumpWidget(const MyApp());
// // Verify the counter starts at 0.
// expect(find.text('0'), findsOneWidget);
// // Finds the floating action button to tap on.
// final fab = find.byKey(const Key('increment'));
// // Emulate a tap on the floating action button.
// await tester.tap(fab);
// // Trigger a frame.
// await tester.pumpAndSettle();
// // Verify the counter increments by 1.
// expect(find.text('1'), findsOneWidget);
// });
// });
}