Files
TREK/client/tests/helpers/journeyDetail.ts
T
Maurice f99b40cd81 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.
2026-11-03 08:44:45 +01:00

18 lines
753 B
TypeScript

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],
});
}