Refine Settings destination shell integration
Keep Settings navigation independent while preserving shell actions and destination-specific state. Add the reviewed chat, run-entry, layout, and regression-test updates needed by the destination behavior.
This commit is contained in:
@@ -604,4 +604,28 @@ void main() {
|
||||
expect(find.text('Nightly review'), findsWidgets);
|
||||
expect(launches, 0);
|
||||
});
|
||||
|
||||
testWidgets('the labelled Run button on the detail starts the flow', (
|
||||
tester,
|
||||
) async {
|
||||
final fixture = PipelineFixture();
|
||||
final navigated = <int>[];
|
||||
final gateway = launchGateway(fixture, onLaunch: (_) => acceptedRun(79));
|
||||
await pumpScreen(tester, gateway, navigated);
|
||||
await openDetail(tester);
|
||||
|
||||
final run = find.byKey(runPipelineActionKey);
|
||||
expect(
|
||||
find.descendant(of: run, matching: find.text(runPipelineActionLabel)),
|
||||
findsOneWidget,
|
||||
);
|
||||
await tester.tap(run);
|
||||
await tester.pumpAndSettle();
|
||||
await fillFields(tester);
|
||||
await tester.tap(find.byKey(runPipelineConfirmKey));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(gateway.callsOf('run_pipeline'), hasLength(1));
|
||||
expect(navigated, [79]);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user