add flutter example app test

This commit is contained in:
mlsmaycon
2026-04-28 03:41:36 +02:00
parent 154b81645a
commit 555f5233cc
88 changed files with 18364 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:netbird_flutter_ui/src/app_shell.dart';
import 'package:netbird_flutter_ui/src/daemon_client.dart';
void main() {
testWidgets('renders the status shell', (tester) async {
await tester.pumpWidget(
NetBirdFlutterApp(
client: FakeDaemonClient(daemonAddr: 'tcp://127.0.0.1:41731'),
),
);
await tester.pump();
expect(find.text('Status'), findsWidgets);
expect(find.text('Connect'), findsOneWidget);
expect(find.text('Disconnect'), findsOneWidget);
});
}