Files
AFFiNE-Mirror/tests/affine-cloud-copilot/e2e/chat-with/reasoning.spec.ts
akumatus cce756365a feat(core): use claude 4 as default chat model (#12596)
Support [AI-59](https://linear.app/affine-design/issue/AI-59)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - Updated the default AI model for chat prompts to use Claude Sonnet 4.
- **Bug Fixes**
  - Improved model selection logic to better support reasoning features across more AI models.
- **Tests**
  - Enhanced test cases with consistent instructions for response length.
  - Skipped certain chat-related tests to refine test suite stability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-03 06:32:27 +00:00

31 lines
859 B
TypeScript

import { test } from '../base/base-test';
test.describe('AIChatWith/Reasoning', () => {
test.beforeEach(async ({ loggedInPage: page, utils }) => {
await utils.testUtils.setupTestEnvironment(page);
await utils.chatPanel.openChatPanel(page);
});
test.skip('should support chat with reasoning', async ({
loggedInPage: page,
utils,
}) => {
await utils.chatPanel.enableReasoning(page);
await utils.chatPanel.makeChat(
page,
'How do you measure exactly 4 liters of water using a jug that only holds 3 and 5 liters?'
);
await utils.chatPanel.waitForHistory(page, [
{
role: 'user',
content:
'How do you measure exactly 4 liters of water using a jug that only holds 3 and 5 liters?',
},
{
role: 'assistant',
status: 'success',
},
]);
});
});