test.log 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. running 1 test from ./client/admin/pages_know_info.test.tsx
  2. 知识库管理页面测试 ...
  3. 应正确渲染页面元素 ... ok (2s)
  4. 初始加载表格数据 ... ok (1s)
  5. 搜索表单应正常工作 ... ok (2s)
  6. 表格应加载并显示数据 ... ok (114ms)
  7. 应能打开添加文章模态框 ...
  8. ------- output -------
  9. <div
  10. class="ant-modal-title"
  11. id=":rq:"
  12. >
  13. 添加知识库文章
  14. </div>
  15. ----- output end -----
  16. 应能打开添加文章模态框 ... ok (1s)
  17. 应能完整添加一篇文章 ...
  18. ------- output -------
  19. <input
  20. class="ant-input css-dev-only-do-not-override-1a3rktk ant-input-outlined ant-input-status-success"
  21. id="title"
  22. placeholder="请输入文章标题"
  23. type="text"
  24. value="数据分析"
  25. />
  26. <textarea
  27. aria-required="true"
  28. class="ant-input css-dev-only-do-not-override-1a3rktk ant-input-outlined"
  29. id="content"
  30. placeholder="请输入文章内容,支持Markdown格式"
  31. rows="15"
  32. />
  33. <span>
  34. 确 定
  35. </span>
  36. ----- output end -----
  37. 应能完整添加一篇文章 ... FAILED (1s)
  38. 知识库管理页面测试 ... FAILED (due to 1 failed step) (9s)
  39.  ERRORS 
  40. 知识库管理页面测试 ... 应能完整添加一篇文章 => ./client/admin/pages_know_info.test.tsx:324:15
  41. error: AssertionError: Values are not equal: 标题输入框值未更新
  42. [Diff] Actual / Expected
  43. - 数据分析测试文章标题
  44. + 测试文章标题
  45. 
  46. throw new AssertionError(message);
  47.  ^
  48. at assertEquals (https://deno.land/std@0.217.0/assert/assert_equals.ts:52:9)
  49. at file:///docker/codeserver/project/test/d8d-ai-blank-templates/admin-mobile-starter/client/admin/pages_know_info.test.tsx:348:9
  50. at eventLoopTick (ext:core/01_core.js:217:9)
  51. at async innerWrapped (ext:cli/40_test.js:180:5)
  52. at async exitSanitizer (ext:cli/40_test.js:96:27)
  53. at async Object.outerWrapped [as fn] (ext:cli/40_test.js:123:14)
  54. at async TestContext.step (ext:cli/40_test.js:481:22)
  55. at async fn (file:///docker/codeserver/project/test/d8d-ai-blank-templates/admin-mobile-starter/client/admin/pages_know_info.test.tsx:324:7)
  56.  FAILURES 
  57. 知识库管理页面测试 ... 应能完整添加一篇文章 => ./client/admin/pages_know_info.test.tsx:324:15
  58. FAILED | 0 passed (5 steps) | 1 failed (1 step) (9s)