feat(ground-suite): add replay observability console

This commit is contained in:
Onur Özkan committed 2026-08-10 15:24:39 +03:00
1 parent 1d28db2983
commit c06c293f49
33 files changed
+2636

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:ground_suite/app/app.dart';
void main() {
testWidgets('replay workspace keeps diagnostics distinct and read-only', (
tester,
) async {
await tester.pumpWidget(const ProviderScope(child: GroundSuiteApp()));
await tester.pumpAndSettle();
expect(find.text('Observation only'), findsOneWidget);
expect(find.text('Replay fixture'), findsAtLeastNWidgets(1));
expect(find.text('Vehicle identity'), findsOneWidget);
await tester.tap(find.byIcon(Icons.receipt_long_outlined));
await tester.pumpAndSettle();
expect(find.text('Diagnostics'), findsAtLeastNWidgets(1));
expect(
find.text('kaptan_drivers::lidar_lite_v3::error::Error::TransferFault'),
findsOneWidget,
);
await tester.tap(find.text('Shutdowns'));
await tester.pumpAndSettle();
expect(find.text('Orderly shutdown observed'), findsOneWidget);
});
testWidgets(
'compact desktop layout uses bottom navigation without overflow',
(tester) async {
await tester.binding.setSurfaceSize(const Size(480, 800));
addTearDown(() => tester.binding.setSurfaceSize(null));
await tester.pumpWidget(const ProviderScope(child: GroundSuiteApp()));
await tester.pumpAndSettle();
expect(find.byType(NavigationBar), findsOneWidget);
expect(tester.takeException(), isNull);
},
);
}