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

* feat(api): refresh token logic * feat(client): refresh token logic * feat(data-provider): refresh token logic * fix: SSE uses esm * chore: add default refresh token expiry to AuthService, add message about env var not set when generating a token * chore: update scripts to more compatible bun methods, ran bun install again * chore: update env.example and playwright workflow with JWT_REFRESH_SECRET * chore: update breaking changes docs * chore: add timeout to url visit * chore: add default SESSION_EXPIRY in generateToken logic, add act script for testing github actions * fix(e2e): refresh automatically in development environment to pass e2e tests
16 lines
662 B
TypeScript
16 lines
662 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
test.describe('Endpoints Presets suite', () => {
|
|
test('Endpoints Suite', async ({ page }) => {
|
|
await page.goto('http://localhost:3080/', { timeout: 5000 });
|
|
await page.getByTestId('new-conversation-menu').click();
|
|
|
|
// includes the icon + endpoint names in obj property
|
|
const endpointItem = page.getByRole('menuitemradio', { name: 'ChatGPT OpenAI' });
|
|
await endpointItem.click();
|
|
|
|
await page.getByTestId('new-conversation-menu').click();
|
|
// Check if the active class is set on the selected endpoint
|
|
expect(await endpointItem.getAttribute('class')).toContain('active');
|
|
});
|
|
});
|