mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-12 02:59:00 +00:00
* test: restore Playwright smoke e2e * test: harden e2e smoke setup * test: sync e2e server bindings * test: normalize e2e auth urls
15 lines
403 B
TypeScript
15 lines
403 B
TypeScript
import type { User } from '../types';
|
|
|
|
const DEFAULT_USER: User = {
|
|
email: 'testuser@example.com',
|
|
name: 'Test User',
|
|
password: 'securepassword123',
|
|
};
|
|
|
|
export function getE2EUser(): User {
|
|
return {
|
|
email: process.env.E2E_USER_EMAIL ?? DEFAULT_USER.email,
|
|
name: process.env.E2E_USER_NAME ?? DEFAULT_USER.name,
|
|
password: process.env.E2E_USER_PASSWORD ?? DEFAULT_USER.password,
|
|
};
|
|
}
|