b4171ca268
- 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>
41 lines
896 B
JSON
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
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|