diff --git a/app/lib/features/runs/ui/run_detail_visit_sections.dart b/app/lib/features/runs/ui/run_detail_visit_sections.dart index 689d23a1..c4c5b593 100644 --- a/app/lib/features/runs/ui/run_detail_visit_sections.dart +++ b/app/lib/features/runs/ui/run_detail_visit_sections.dart @@ -245,7 +245,7 @@ class _VisitSummary extends StatefulWidget { } class _VisitSummaryState extends State<_VisitSummary> { - final Set _closed = {}; + final Set _closed = {'Input', 'Output'}; String? _copied; Future _copy(String name, dynamic value) async { diff --git a/app/test/features/runs/ui/run_detail_visit_sections_test.dart b/app/test/features/runs/ui/run_detail_visit_sections_test.dart index 3fe58b0a..7bafaa9b 100644 --- a/app/test/features/runs/ui/run_detail_visit_sections_test.dart +++ b/app/test/features/runs/ui/run_detail_visit_sections_test.dart @@ -54,10 +54,16 @@ void main() { await openVisit(tester, platform); // Each field by name with its value, never raw JSON. + expect(find.text('Ship it.'), findsNothing); + expect(find.text('ok'), findsNothing); + await tester.tap(find.text('Input')); + await tester.pumpAndSettle(); expect(find.text('prompt'), findsOneWidget); expect(find.text('Ship it.'), findsOneWidget); expect(find.textContaining('"prompt"'), findsNothing); await openVisitTab(tester, RunVisitSection.output); + await tester.tap(find.text('Output')); + await tester.pumpAndSettle(); expect(find.text('result'), findsOneWidget); expect(find.text('ok'), findsOneWidget); @@ -116,8 +122,14 @@ void main() { step.remove('session_export'); await openVisit(tester, platform, run: run); + expect(find.text(visitEmptyInput), findsNothing); + expect(find.text(visitEmptyOutput), findsNothing); + await tester.tap(find.text('Input')); + await tester.pumpAndSettle(); expect(find.text(visitEmptyInput), findsOneWidget); await openVisitTab(tester, RunVisitSection.output); + await tester.tap(find.text('Output')); + await tester.pumpAndSettle(); expect(find.text(visitEmptyOutput), findsOneWidget); await openVisitTab(tester, RunVisitSection.artifacts); expect(