运行 JiuwenClaw Web UI 端到端测试并收集截图、日志、report.md、report.json。用于验证 Todo 和 Cron Web UI 流程、复现浏览器交互问题、选择运行解释器、准备 Playwright 环境,或返回可操作的失败证据时。
复用本目录现成脚本,不要临时重写浏览器测试流程。
todo_ui_report.py:验证待办创建、状态更新、Tool Panel 展示。cron_ui_report.py:验证定时任务面板、结构化提醒、预览、立即执行、开关、删除。run_suite.py:顺序执行多个场景并汇总结果。jiuwenclaw.app 和 jiuwenclaw.app_web 的 Python 解释器。.[e2e]。jiuwenclaw/channels/web/frontend 已安装前端依赖。常用命令:
export JIUWENCLAW_E2E_PYTHON=.venv/bin/python
"$JIUWENCLAW_E2E_PYTHON" -m pip install -e ".[e2e]"
"$JIUWENCLAW_E2E_PYTHON" -m playwright install chromium--runtime-pythonJIUWENCLAW_E2E_PYTHON./.venv/bin/python优先使用仓库自己的虚拟环境,不要硬编码个人机器路径。
运行完整套件:
python3 -m tests.ui_e2e.run_suite --build运行单个场景:
python3 tests/ui_e2e/todo_ui_report.py --build
python3 tests/ui_e2e/cron_ui_report.py --build指定解释器或输出目录时,显式传参:
python3 -m tests.ui_e2e.run_suite \
--build \
--runtime-python "$JIUWENCLAW_E2E_PYTHON" \
--report-root /tmp/ui-e2e-suitepython3 tests/ui_e2e/cron_ui_report.py \
--build \
--runtime-python "$JIUWENCLAW_E2E_PYTHON" \
--report-dir /tmp/cron-ui-report默认使用临时 HOME 做冒烟验证;只有确认真实工作区行为时,再显式传入真实 --home。
report.mdreport.jsonbackend.logui.log默认产物目录在 tests/ui_e2e/artifacts/。
todo_ui_report.py:启动真实 jiuwenclaw.app,验证待办工具链和 Tool Panel。cron_ui_report.py:启动真实 jiuwenclaw.app,验证 Cron 面板和结构化提醒。XiaoLuoLYG/GOD
753f067
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.