merge(app): land func-changes-gate

This commit is contained in:
2026-10-23 14:33:05 +01:00
@@ -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);
});
}