fix(app): repair runs test wiring inherited from main
Main's Runs detail now requires the shared gateway, but three inherited call sites (two Changes tests and the diff wiring probe) still constructed it without one, and the Cupertino 2x detail test tapped Output before the reveal scroll had been pumped. Pass the existing fake gateway at each call site and settle after scrollUntilVisible. No production behaviour changes.
This commit is contained in:
@@ -147,17 +147,16 @@ class _ProbeBody extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _ProbeBodyState extends State<_ProbeBody> {
|
||||
late final RunsController _controller = RunsController(
|
||||
RunsRepository(
|
||||
_FakeGateway(
|
||||
_run(
|
||||
unavailable: widget.unavailable,
|
||||
status: widget.status,
|
||||
stepStatus: widget.stepStatus,
|
||||
),
|
||||
),
|
||||
late final _FakeGateway _gateway = _FakeGateway(
|
||||
_run(
|
||||
unavailable: widget.unavailable,
|
||||
status: widget.status,
|
||||
stepStatus: widget.stepStatus,
|
||||
),
|
||||
);
|
||||
late final RunsController _controller = RunsController(
|
||||
RunsRepository(_gateway),
|
||||
);
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -173,7 +172,11 @@ class _ProbeBodyState extends State<_ProbeBody> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final detail = RunDetailView(controller: _controller, onBack: () {});
|
||||
final detail = RunDetailView(
|
||||
controller: _controller,
|
||||
gateway: _gateway,
|
||||
onBack: () {},
|
||||
);
|
||||
if (Theme.of(context).platform == TargetPlatform.iOS) {
|
||||
return CupertinoPageScaffold(
|
||||
navigationBar: const CupertinoNavigationBar(middle: Text('Runs')),
|
||||
|
||||
Reference in New Issue
Block a user