Files
memind/scenarios/_template.json
john b4171ca268 chore(test): 新增统一测试入口与端到端场景模拟脚本
- scripts/run-memind-tests.mjs:按改动文件自动匹配 test + verify 范围
  (quick/changed/guards/release/full 模式),配套 memind-test skill
- scripts/run-scenario-test.mjs + scenario-test-lib.mjs:真实登录 + 多轮
  聊天 + 页面生成 + 公网可访问性的端到端模拟,配套 memind-scenario-test
  skill 与首个场景 scenarios/suzhou-page.json
- package.json 新增 test:memind / test:scenario 脚本别名

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 10:56:26 +08:00

41 lines
896 B
JSON

{
"id": "your-scenario-id",
"name": "场景名称",
"description": "一句话说明这个场景测什么",
"account": {
"username": "john",
"password": "888888"
},
"steps": [
{
"action": "login",
"label": "登录"
},
{
"action": "chat",
"label": "第一步对话",
"message": "hi",
"expect": {
"assistantMinChars": 1,
"timeoutMs": 120000
}
},
{
"action": "chat",
"label": "第二步对话(可带页面断言)",
"message": "你的测试消息",
"expect": {
"assistantMinChars": 20,
"timeoutMs": 300000,
"replyKeywords": ["关键词"],
"page": {
"keywords": ["页面里应出现的词"],
"requirePublicLink": true,
"requireHttp200": true,
"requireMindspaceCover": false
}
}
}
]
}