ui-test-puppeteer
Use this skill when you need to design Puppeteer automation for Chromium-driven checks, screenshots, PDFs, network interception, and CDP use cases; triggers include Puppeteer UI testing, UI automation testing, and ui-test-puppeteer.
How do I install this agent skill?
npx skills add https://github.com/naodeng/awesome-qa-skills --skill ui-test-puppeteerIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a legitimate toolset for designing and testing Puppeteer UI automation. It includes mock web servers, test fixtures, and structured prompts for QA automation tasks. No malicious behaviors, obfuscation, or data exfiltration attempts were detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Puppeteer UI 自动化测试
English version: see the matching English skill.
何时使用
- 需要输出面向 Puppeteer UI 自动化测试工作流的测试方案或自动化设计。
- 项目已经使用相关工具,或希望得到可直接落地的工具专项方案。
输出格式选项
默认使用 Markdown。除非请求明确要求其他格式,不额外扩展输出格式。
如何使用
- 打开
prompts/ui-test-puppeteer.md,将其作为主提示词。 - 补充真实项目上下文:范围、环境、约束、风险、依赖和期望交付物。
- 如果输入不完整,先返回可用的第一版,并标出缺失信息和假设。
参考文件
-
校准领域结果、正确对照或证据缺口时,读取 references/domain-decision-example.md 的脱敏输入、逐项预期与复算依据。
-
prompts/ui-test-puppeteer.md:本技能主提示词。 -
references/framework-spec.md:工具专项结构和覆盖说明。 -
references/setup-and-ci.md:安装、执行和 CI 说明。 -
examples/sample-context.md:示例请求上下文。 -
scripts/run-tests.sh:轻量本地执行入口。
领域执行要点
- 读取实际Puppeteer/Node/browser与launch配置/支持范围;版本或browser不兼容单列CONFIG_ERROR,不能把launch成功当所有功能兼容。
- 新窗口从目标创建事件/关联opener定位并等待可用page,检查目标URI与权限;导航等待与业务就绪分开,以页面真实状态作oracle,固定sleep无此证据。
- try/finally关闭新旧page及自建browser,保留超时/加载失败原异常;主错误与cleanup错误分别记录,不能吞异常后返回成功。
- 最小fixture包含正常支付、wrong state、新窗口、加载失败与超时;核对业务状态/主体及截图/URL/日志/版本,不把文件生成或HTTP加载成功升级为业务通过。
常见误区
- 不要在范围模糊且缺少上下文时直接给泛泛方案。
- 不要把所有模块和场景视为同等重要。
- 不要跳过假设和缺失信息说明。
最佳实践
-
从 prompt 文件开始,只补充真正影响结果的上下文。
-
输出保持风险驱动,并能直接用于执行或评审。
-
信息不完整时,先给可用版本,再标清缺口。
-
验证生成资产的业务断言、失败传播或隔离时,读取 evals/fixtures/checkout-app/README.md,使用本地good/bug/timeout对照;仅在明确运行时执行。
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/naodeng/awesome-qa-skills/ui-test-puppeteer">View ui-test-puppeteer on skillZs</a>