mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-12 20:44:24 +01:00
feat(e2e): Fix authentication tests and environment handling
This commit is contained in:
parent
20100e120b
commit
a3bfbf5948
15 changed files with 324 additions and 43 deletions
|
|
@ -2,7 +2,7 @@ import { expect, test } from '@playwright/test';
|
|||
|
||||
test.describe('Settings suite', () => {
|
||||
test('Last OpenAI settings', async ({ page }) => {
|
||||
await page.goto('http://localhost:3080/', { timeout: 5000 });
|
||||
await page.goto('/', { timeout: 5000 });
|
||||
await page.evaluate(() =>
|
||||
window.localStorage.setItem(
|
||||
'lastConversationSetup',
|
||||
|
|
@ -15,7 +15,7 @@ test.describe('Settings suite', () => {
|
|||
}),
|
||||
),
|
||||
);
|
||||
await page.goto('http://localhost:3080/', { timeout: 5000 });
|
||||
await page.goto('/', { timeout: 5000 });
|
||||
|
||||
const initialLocalStorage = await page.evaluate(() => window.localStorage);
|
||||
const lastConvoSetup = JSON.parse(initialLocalStorage.lastConversationSetup);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue