Integrate scoped Settings restoration and preserve detail on Back

This commit is contained in:
2026-11-08 01:05:07 +00:00
parent 151d99fbb6
commit e363a90295
4 changed files with 22 additions and 1 deletions
@@ -197,6 +197,16 @@ void main() {
await tab(tester, 'pipelines');
expect(app.provider.value.uri.path, '/settings');
expect(tester.widget<PipelinesScreen>(hidden).initialPipelineId, 1);
await tester.tap(find.byKey(const Key('shell.back')));
await tester.pumpAndSettle();
expect(app.provider.value.uri.path, '/pipelines/1');
expect(tester.state(find.byType(PipelinesScreen)), same(pipelineState));
expect(
tester
.widget<PipelinesScreen>(find.byType(PipelinesScreen))
.initialPipelineId,
1,
);
expect(tester.takeException(), isNull);
});
}