This commit is contained in:
zyh
2025-04-22 14:19:05 +00:00
parent a5cfee4338
commit 40b9a53610

View File

@@ -1,43 +1,54 @@
running 1 test from ./client/admin/pages_know_info.test.tsx
知识库管理页面测试 ...
应正确渲染页面元素 ... ok (2s)
初始加载表格数据 ... ok (729ms)
搜索表单应正常工作 ... ok (1s)
表格应加载并显示数据 ... ok (38ms)
应能打开添加文章模态框 ...
------- output -------
<div
class="ant-modal-title"
id=":rq:"
>
添加知识库文章
</div>
----- output end -----
应能打开添加文章模态框 ... ok (298ms)
应能完整添加一篇文章 ...
------- output -------
<input
aria-required="true"
class="ant-input css-dev-only-do-not-override-1a3rktk ant-input-outlined"
id="title"
placeholder="请输入文章标题"
type="text"
value=""
/>
<textarea
aria-required="true"
class="ant-input css-dev-only-do-not-override-1a3rktk ant-input-outlined"
id="content"
placeholder="请输入文章内容支持Markdown格式"
rows="15"
/>
<span>
确 定
</span>
hasNewArticle true
----- output end -----
应能完整添加一篇文章 ... ok (483ms)
知识库管理页面测试 ... ok (6s)
[测试套件] 知识库管理页面测试 (./client/admin/pages_know_info.test.tsx)
ok | 1 passed (6 steps) | 0 failed (6s)
[测试用例] 应正确渲染页面元素
- 状态: 通过
- 耗时: 2.000s
[测试用例] 初始加载表格数据
- 状态: 通过
- 耗时: 0.729s
[测试用例] 搜索表单应正常工作
- 状态: 通过
- 耗时: 1.000s
[测试用例] 表格应加载并显示数据
- 状态: 通过
- 耗时: 0.038s
[测试用例] 应能打开添加文章模态框
- 状态: 通过
- 耗时: 0.298s
- 输出内容:
<div class="ant-modal-title" id=":rq:">
添加知识库文章
</div>
[测试用例] 应能完整添加一篇文章
- 状态: 通过
- 耗时: 0.483s
- 输出内容:
<input
aria-required="true"
class="ant-input css-dev-only-do-not-override-1a3rktk ant-input-outlined"
id="title"
placeholder="请输入文章标题"
type="text"
value=""
/>
<textarea
aria-required="true"
class="ant-input css-dev-only-do-not-override-1a3rktk ant-input-outlined"
id="content"
placeholder="请输入文章内容支持Markdown格式"
rows="15"
/>
<span>确 定</span>
hasNewArticle true
[测试总结]
- 总测试数: 1
- 通过数: 1
- 失败数: 0
- 总耗时: 6.000s
- 所有测试通过