Persist exact tab locations including Settings under Pipelines
This commit is contained in:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user