mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-28 18:31:24 +00:00
* 🧪 feat: add e2e playwright tests * 🧪 feat: Add Playwright Recording Harness * test: fix mock playwright config * test: harden mock e2e environment * test: preserve mock dotenv secrets * test: harden mock isolation setup * ci: cache mock e2e builds * test: harden e2e cache and recorder checks * test: preserve data-provider exports in oauth route test * test: isolate mock auth logout state * test: allow isolated logout smoke setup * test: prepare logout smoke auth via api * test: isolate oauth route module mock --------- Co-authored-by: Danny Avila <danny@librechat.ai>
20 lines
569 B
TypeScript
20 lines
569 B
TypeScript
import type { User } from '../types';
|
|
import { getE2EUser } from './user';
|
|
|
|
const DEFAULT_SECONDARY_USER: User = {
|
|
email: 'testuser-b@example.com',
|
|
name: 'Test User B',
|
|
password: 'securepassword456',
|
|
};
|
|
|
|
export function getPrimaryE2EUser(): User {
|
|
return getE2EUser();
|
|
}
|
|
|
|
export function getSecondaryE2EUser(): User {
|
|
return {
|
|
email: process.env.E2E_USER_B_EMAIL ?? DEFAULT_SECONDARY_USER.email,
|
|
name: process.env.E2E_USER_B_NAME ?? DEFAULT_SECONDARY_USER.name,
|
|
password: process.env.E2E_USER_B_PASSWORD ?? DEFAULT_SECONDARY_USER.password,
|
|
};
|
|
}
|