fix(app): start stage input and output summaries collapsed

This commit is contained in:
2026-10-24 01:54:54 +01:00
parent 7f88f14a52
commit 027be68ae7
2 changed files with 13 additions and 1 deletions
@@ -245,7 +245,7 @@ class _VisitSummary extends StatefulWidget {
}
class _VisitSummaryState extends State<_VisitSummary> {
final Set<String> _closed = {};
final Set<String> _closed = {'Input', 'Output'};
String? _copied;
Future<void> _copy(String name, dynamic value) async {
@@ -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(