feat(history): complete messaging core before multi-account gateways

This commit is contained in:
wmq
2026-07-28 22:36:58 +08:00
parent cd06d049fe
commit 7f09132fad
54 changed files with 4781 additions and 601 deletions
+8
View File
@@ -32,6 +32,10 @@ test.describe('真实收件箱 AI 交互', () => {
await expect(customerBubble.first()).toHaveClass(/animate-message-in-left/)
const agentBubble = page.locator('[data-testid="message-bubble"][data-sender="agent"]')
await expect(agentBubble.first()).toHaveClass(/animate-message-in-right/)
const outgoingChineseNotes = page.getByTestId('outgoing-chinese-note')
await expect.poll(() => outgoingChineseNotes.count()).toBeGreaterThan(0)
await expect(outgoingChineseNotes.first()).toContainText('中文备注 · 仅内部可见')
await expect(outgoingChineseNotes.first()).toContainText(/[\u3400-\u9fff]/u)
await page.getByTitle('客户洞察').click()
await expect(page.getByText('成交概率', { exact: true })).toBeVisible()
await expect(page.getByText('分析可信度', { exact: true })).toBeVisible()
@@ -49,6 +53,10 @@ test.describe('真实收件箱 AI 交互', () => {
await page.getByRole('button', { name: '生成回复建议', exact: true }).click()
const adoptButtons = page.getByRole('button', { name: '采用', exact: true })
await expect(adoptButtons).toHaveCount(3, { timeout: 30_000 })
const translationPreviews = page.getByTestId('ai-reply-translation')
await expect(translationPreviews).toHaveCount(3)
await expect(translationPreviews.first()).toContainText(/[\u3400-\u9fff]/u)
await expect(translationPreviews.first()).toContainText('中文参考 · 不会发送')
await adoptButtons.first().click()
const composer = page.getByPlaceholder('输入回复内容,Enter 发送,Shift+Enter 换行')