chore: organize tests and tweak stream delays (#942)

This commit is contained in:
Jeremy 2025-04-20 22:27:20 -07:00 committed by GitHub
parent 020494f63b
commit 6e16f3b30a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 21 additions and 21 deletions

View file

@ -1,20 +0,0 @@
import path from 'path';
import { expect, test as setup } from '@playwright/test';
import { ChatPage } from './pages/chat';
const reasoningFile = path.join(
__dirname,
'../playwright/.reasoning/session.json',
);
setup('switch to reasoning model', async ({ page }) => {
const chatPage = new ChatPage(page);
await chatPage.createNewChat();
await chatPage.chooseModelFromSelector('chat-model-reasoning');
await expect(chatPage.getSelectedModel()).resolves.toEqual('Reasoning model');
await page.waitForTimeout(1000);
await page.context().storageState({ path: reasoningFile });
});