Persist exact tab locations including Settings under Pipelines

This commit is contained in:
2026-11-08 01:04:00 +00:00
parent d6006bb1f8
commit 151d99fbb6
10 changed files with 778 additions and 25 deletions
+16
View File
@@ -36,6 +36,22 @@ Future<AppRouterDelegate> pumpRouter(
}
void main() {
test(
'restoring Settings subpages from another tab preserves their parent',
() async {
final router = delegate(AppRoute.chat);
addTearDown(router.dispose);
router.goTo(AppRoute.template('release'));
expect(router.shellRoute, AppRoute.settings);
router.closeTemplates();
expect(router.route, AppRoute.settings);
router.goTo(AppRoute.chat);
await router.setNewRoutePath(AppRoute.schedules);
expect(router.shellRoute, AppRoute.settings);
router.closeSchedules();
expect(router.route, AppRoute.settings);
},
);
TestWidgetsFlutterBinding.ensureInitialized();
test('with nothing pushed the router leaves Back to the platform', () async {
for (final route in [