diff --git a/app/test/features/changes/changes_viewer_test.dart b/app/test/features/changes/changes_viewer_test.dart index 50eed966..34689da7 100644 --- a/app/test/features/changes/changes_viewer_test.dart +++ b/app/test/features/changes/changes_viewer_test.dart @@ -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); + }); }