docs: 交付文档、维护指引与端到端回归
补齐 README、开发计划、维护交接与 E2E 用例,执行最终验收。
This commit is contained in:
1 parent
5be5ca3376
commit
308332eb94
216 files changed
+37038
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { test, expect, AI_REPLY } from '@e2e'
|
||||
|
||||
// The dashboard also offers an iframe snippet: the chat page itself, served by
|
||||
// the API. Its socket comes from the API's own origin, which must be allowed
|
||||
// whether or not the operator listed it in CORS_ORIGINS.
|
||||
|
||||
test('a customer chats through the iframe snippet @widget', async ({ agent, widget, llm }) => {
|
||||
await llm.script(agent, (s) => s.otherwise().reply('Hello from the iframe'))
|
||||
|
||||
await widget.embed({ snippet: 'iframe' })
|
||||
await widget.expectReady()
|
||||
await widget.send('Hi')
|
||||
await expect(widget.lastAgentMessage()).toHaveText('Hello from the iframe', AI_REPLY)
|
||||
})
|
||||
Reference in new issue
Block a user