// Seed user constants for E2E tests.
// Matches supabase/seed.sql and keycloak/realm-export.json.

export const USERS = {
	ana: {
		id: '11111111-1111-1111-1111-111111111111',
		email: 'ana@dev.local',
		password: 'test1234',
		displayName: 'Ana García',
		role: 'admin' as const,
		storageState: 'tests/.auth/ana.json'
	},
	borja: {
		id: '22222222-2222-2222-2222-222222222222',
		email: 'borja@dev.local',
		password: 'test1234',
		displayName: 'Borja López',
		role: 'member' as const,
		storageState: 'tests/.auth/borja.json'
	},
	david: {
		id: '44444444-4444-4444-4444-444444444444',
		email: 'david@dev.local',
		password: 'test1234',
		displayName: 'David Fernández',
		role: 'guest' as const,
		storageState: 'tests/.auth/david.json'
	},
	eva: {
		id: '55555555-5555-5555-5555-555555555555',
		email: 'eva@dev.local',
		password: 'test1234',
		displayName: 'Eva Ruiz',
		role: 'none' as const, // no collective
		storageState: 'tests/.auth/eva.json'
	}
} as const;

export type UserKey = keyof typeof USERS;
export const COLLECTIVE_NAME = 'Casa García-López';
export const KEYCLOAK_URL = process.env.PUBLIC_KEYCLOAK_URL ?? 'http://localhost:8080';
export const KEYCLOAK_REALM = process.env.PUBLIC_KEYCLOAK_REALM ?? 'colectivo';
