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:
@@ -59,10 +59,15 @@ Future<void> _pumpDetail(
|
||||
tester.view.physicalSize = const Size(500, 1200);
|
||||
tester.view.devicePixelRatio = 1;
|
||||
addTearDown(tester.view.reset);
|
||||
final controller = RunsController(RunsRepository(_FakeGateway(run)));
|
||||
final gateway = _FakeGateway(run);
|
||||
final controller = RunsController(RunsRepository(gateway));
|
||||
addTearDown(controller.dispose);
|
||||
await controller.select(9);
|
||||
final view = RunDetailView(controller: controller, onBack: () {});
|
||||
final view = RunDetailView(
|
||||
controller: controller,
|
||||
gateway: gateway,
|
||||
onBack: () {},
|
||||
);
|
||||
await tester.pumpWidget(
|
||||
platform == _Platform.material
|
||||
? MaterialApp(
|
||||
|
||||
Reference in New Issue
Block a user