Files
AFFiNE-Mirror/tests/affine-cloud-copilot/e2e/chat-with/network.spec.ts
akumatus a603c06fab feat(core): add web search tool and reasoning params (#11912)
Close [AI-60](https://linear.app/affine-design/issue/AI-60).

### What changed?
- Add Exa web search tool
- Add reasoning params
2025-04-24 12:23:06 +00:00

30 lines
780 B
TypeScript

import { test } from '../base/base-test';
test.describe('AIChatWith/Network', () => {
test.beforeEach(async ({ loggedInPage: page, utils }) => {
await utils.testUtils.setupTestEnvironment(page);
await utils.chatPanel.openChatPanel(page);
});
test('should support chat with network if network search enabled', async ({
loggedInPage: page,
utils,
}) => {
await utils.chatPanel.enableNetworkSearch(page);
await utils.chatPanel.makeChat(
page,
'What is the weather like in Shanghai today?'
);
await utils.chatPanel.waitForHistory(page, [
{
role: 'user',
content: 'What is the weather like in Shanghai today?',
},
{
role: 'assistant',
status: 'success',
},
]);
});
});