mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 10:44:23 +00:00
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:
@@ -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],
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user