mitao-su/dsh-playwright-cli ↗★ 2
dsh-playwright-cli
DeepSeek Harness host plugin that wraps the Playwright CLI: install browsers, run tests, and open the HTML report from the agent loop.
AI 분석
核心用途是让智能体能够直接执行自动化测试并输出 HTML 报告。适合需要进行端到端测试、前端自动化校验的开发与测试人员。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mitao-su/dsh-playwright-cli使用示例
Agent 侧一次典型会话:
playwright_version(workdir 默认会话工作区)→ 确认 CLI 就绪;playwright_test(files: ["tests/login.spec.ts"],reporter: "html")→ 跑测试,得到reportDir;playwright_show_report→ 拿到url,用户直接在浏览器打开报告。
配置(profile cordis.patch.yml 按 id: playwright-cli 整段覆盖):
- insert:
- id: playwright-cli
name: dsh-playwright-cli
config:
timeoutMs: 600000 # 每次 CLI 调用的默认超时
reportDir: playwright-report
reportRoute: /playwright-report
autoInstallPackage: true # CLI 缺失时自动 npm install -D @playwright/test