fix(app): start stage input and output summaries collapsed
This commit is contained in:
@@ -245,7 +245,7 @@ class _VisitSummary extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _VisitSummaryState extends State<_VisitSummary> {
|
class _VisitSummaryState extends State<_VisitSummary> {
|
||||||
final Set<String> _closed = {};
|
final Set<String> _closed = {'Input', 'Output'};
|
||||||
String? _copied;
|
String? _copied;
|
||||||
|
|
||||||
Future<void> _copy(String name, dynamic value) async {
|
Future<void> _copy(String name, dynamic value) async {
|
||||||
|
|||||||
@@ -54,10 +54,16 @@ void main() {
|
|||||||
await openVisit(tester, platform);
|
await openVisit(tester, platform);
|
||||||
|
|
||||||
// Each field by name with its value, never raw JSON.
|
// 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('prompt'), findsOneWidget);
|
||||||
expect(find.text('Ship it.'), findsOneWidget);
|
expect(find.text('Ship it.'), findsOneWidget);
|
||||||
expect(find.textContaining('"prompt"'), findsNothing);
|
expect(find.textContaining('"prompt"'), findsNothing);
|
||||||
await openVisitTab(tester, RunVisitSection.output);
|
await openVisitTab(tester, RunVisitSection.output);
|
||||||
|
await tester.tap(find.text('Output'));
|
||||||
|
await tester.pumpAndSettle();
|
||||||
expect(find.text('result'), findsOneWidget);
|
expect(find.text('result'), findsOneWidget);
|
||||||
expect(find.text('ok'), findsOneWidget);
|
expect(find.text('ok'), findsOneWidget);
|
||||||
|
|
||||||
@@ -116,8 +122,14 @@ void main() {
|
|||||||
step.remove('session_export');
|
step.remove('session_export');
|
||||||
await openVisit(tester, platform, run: run);
|
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);
|
expect(find.text(visitEmptyInput), findsOneWidget);
|
||||||
await openVisitTab(tester, RunVisitSection.output);
|
await openVisitTab(tester, RunVisitSection.output);
|
||||||
|
await tester.tap(find.text('Output'));
|
||||||
|
await tester.pumpAndSettle();
|
||||||
expect(find.text(visitEmptyOutput), findsOneWidget);
|
expect(find.text(visitEmptyOutput), findsOneWidget);
|
||||||
await openVisitTab(tester, RunVisitSection.artifacts);
|
await openVisitTab(tester, RunVisitSection.artifacts);
|
||||||
expect(
|
expect(
|
||||||
|
|||||||
Reference in New Issue
Block a user