test(app): changes viewer hides the run-wide summary without the settled-run gate

This commit is contained in:
2026-10-23 14:30:35 +01:00
parent f9b796a1f9
commit dd6c52f9a4
@@ -494,4 +494,21 @@ void main() {
expect(find.text('Copy patch'), findsOneWidget);
expect(find.byTooltip('Close diff'), findsOneWidget);
});
testWidgets('without the settled-run gate there is no run-wide summary', (
tester,
) async {
// A failed or running run: the web shows no aggregate, only each visit's
// own capture.
await tester.pumpWidget(
materialHost(
ChangesViewer(
steps: [stepFixture(fileChanges: null)],
showSummary: false,
),
),
);
expect(find.text('Changes · not recorded for this run'), findsNothing);
expect(find.text('Capture unavailable'), findsOneWidget);
});
}