Ui e2e

From XiaoLuoLYG/GOD · View interactive version

Ui e2e is an AI agent skill from the GitHub repository XiaoLuoLYG/GOD. 运行 JiuwenSwarm Web UI 端到端测试并收集截图、日志、report.md、report.json。用于验证任务多模态、Todo 和 Cron Web UI 流程、复现浏览器交互问题、选择运行解释器、准备 Playwright 环境,或返回可操作的失败证据时。

How to use this skill

Skill file

UI E2E

复用本目录现成脚本,不要临时重写浏览器测试流程。

使用脚本

准备环境

常用命令:

export JIUWENSWARM_E2E_PYTHON=.venv/bin/python
"$JIUWENSWARM_E2E_PYTHON" -m pip install -e .
"$JIUWENSWARM_E2E_PYTHON" -m playwright install chromium

解释器选择

  1. --runtime-python
  2. 环境变量 JIUWENSWARM_E2E_PYTHON
  3. ./.venv/bin/python
  4. 当前解释器

优先使用仓库自己的虚拟环境,不要硬编码个人机器路径。

执行

运行完整套件:

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 "$JIUWENSWARM_E2E_PYTHON" \
  --report-root /tmp/ui-e2e-suite
python3 tests/ui_e2e/cron_ui_report.py \
  --build \
  --runtime-python "$JIUWENSWARM_E2E_PYTHON" \
  --report-dir /tmp/cron-ui-report

默认使用临时 HOME 做冒烟验证;只有确认真实工作区行为时,再显式传入真实 --home。

产物

默认产物目录在 tests/ui_e2e/artifacts/。

场景

输出结论

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.