mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 07:40:59 +00:00
f99b40cd81
- 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.
18 lines
753 B
TypeScript
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],
|
|
});
|
|
}
|