Managed mode: keep the journey page suite within its size baseline

- The owner sign-in and the photo provider the suite runs with move into
  tests/helpers/journeyDetail.ts, so the page test is back under its line
  baseline, which drops to 4028.
- Drop help/registry.base.ts, an unused copy of the help registry whose key
  builders the i18n key check could not resolve.
This commit is contained in:
Maurice
2026-11-02 21:54:42 +00:00
committed by Maurice
parent 59e68d81b2
commit f99b40cd81
4 changed files with 21 additions and 157 deletions
+17
View File
@@ -0,0 +1,17 @@
import { useAddonStore } from '../../src/store/addonStore';
import { useAuthStore } from '../../src/store/authStore';
import { usePermissionsStore } from '../../src/store/permissionsStore';
import type { User } from '../../src/types';
import { seedStore } from './store';
/**
* The install the journey page suite runs on: the owner is signed in with full
* rights, and a photo provider is on, so the entry editor offers External photos.
*/
export function seedJourneyOwner(user: User): void {
seedStore(useAuthStore, { isAuthenticated: true, user });
seedStore(usePermissionsStore, { level: 'owner' } as never);
seedStore(useAddonStore, {
addons: [{ id: 'immich', name: 'Immich', type: 'photo_provider', enabled: true } as never],
});
}