mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00

* feat: add global teardown to remove test data and add registration/log-out to auth flow * refactor(models/Conversation): index user field and add JSDoc to deleteConvos * refactor: add user index to message schema and ensure user is saved to each Message * refactor: add user to each saveMessage call * fix: handle case where title is null in zod schema * feat(e2e): ensure messages are deleted on cleanUp * fix: set last convo for all endpoints on conversation update * fix: enable registration for CI env
14 lines
348 B
TypeScript
14 lines
348 B
TypeScript
import { FullConfig } from '@playwright/test';
|
|
import authenticate from './authenticate';
|
|
|
|
async function globalSetup(config: FullConfig) {
|
|
const user = {
|
|
name: 'test',
|
|
email: String(process.env.E2E_USER_EMAIL),
|
|
password: String(process.env.E2E_USER_PASSWORD),
|
|
};
|
|
|
|
await authenticate(config, user);
|
|
}
|
|
|
|
export default globalSetup;
|