Browser Testing

定义了使用浏览器开发者工具进行端到端(E2E)测试的工作流,测试用例以 Markdown 文件形式记录。

260 stars 30 forksTesting & QA

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add cafe3310/public-agent-skills --skill browser-testing
Manual install
git clone --depth 1 https://github.com/cafe3310/public-agent-skills.git /tmp/public-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/public-agent-skills/skills_archived/browser-testing ~/.claude/skills/browser-testing

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 技能: 基于浏览器的端到端测试

## 1. 概述

本技能定义了一套端到端(E2E)测试流程,该流程不依赖传统的单元测试框架,而是通过 `chrome-dev-tools` 或类似的浏览器工具进行手动或半自动化的界面测试。

所有测试用例都以结构化的 Markdown 文件形式进行记录和管理。

## 2. 何时使用

- 当需要为项目中的某个 Space 应用创建或执行测试时。
- 当需要验证一个功能在本地和部署后是否都按预期工作时。
- 当需要记录测试过程和结果以供回顾时。

## 3. 测试流程

1.  **本地测试优先**: 在本地环境中完成开发后,首先在本地运行应用,并根据测试用例执行端到端测试。
2.  **部署测试**: 本地测试全部通过后,将代码推送到 `main` 分支,触发 Hugging Face Spaces 的自动部署。
3.  **验证部署**: 在部署后的 Space 页面上,重复执行测试用例,确保线上功能与本地一致。

## 4. 测试用例规范

### A) 存放位置

每个 Space 应用的测试用例都存放在其各自的 `tests/` 目录下。例如:`some-proj/tests/`。

### B) 文件结构

每个测试用例都是一个独立的 Markdown 文件,其内容结构由模板 `templates/test-case.md.template` 定义。

-   **文件头**:
    -   **创建时间**: 测试用例创建时的时间戳。
    -   **Commit Hash**: 创建时对应的 Git Commit 哈希值。
    -   **Commit Message**: 创建时对应的 Git Commit 消息。
-   **核心定义**:
    -   **测试名称**: 对测试用例的简短描述。
    -   **测试目的**: 详细说明此测试用例要验证的功能或修复的问题。
-   **环境信息**:
    -   **本地运行和部署方式**: 清晰说明如何在本地启动应用以及如何触发部署。
-   **执行与结果**:
    -   **测试步骤**: 一系列清晰、可复现的操作步骤。
    -   **预期结果**: 描述在执行完测试步骤后,系统应该达到的状态。
    -   **通过时的实际结果**: 当测试成功通过后,在此处记录观察到的实际结果,包括:
        -   **截图路径**: 自动截取的关键页面截图的存储路径。
        -   **验证状态**: 截图内容与预期结果描述比对后的验证结果(通过/不通过)。
        -   **口述标准**: 用户口述的预期结果视觉描述。
        这些记录作为测试通过的凭证。

### C) 创建测试用例

1.  使用 `date +'%Y-%m-%d-%H-%M'` 获取当前时间戳。
2.  使用 `git log -1 --pretty=%H%n%s` 获取最新的 Commit 信息。
3.  复制 `browser-testing/templates/test-case.md.template` 模板内容。
4.  填充模板中的占位符,并编写详细的测试步骤和预期结果。
5.  将新创建的测试用例文件保存到对应 Space 的 `tests/` 目录下。
Read the full skill on GitHub

Details

Skill name
browser-testing
Path
skills_archived/browser-testing/SKILL.md
License
Apache-2.0
Repo updated
15 November 2026

FAQ

What does the Browser Testing skill do?

定义了使用浏览器开发者工具进行端到端(E2E)测试的工作流,测试用例以 Markdown 文件形式记录。

How do I install the Browser Testing skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add cafe3310/public-agent-skills --skill browser-testing. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Browser Testing popular?

It lives in cafe3310/public-agent-skills, which has 260 GitHub stars and 30 forks.

Related skills

Skill Creator

260

cafe3310/public-agent-skills

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

Skill & Plugin AuthoringIn 1 list30

Impeccable

260

cafe3310/public-agent-skills

Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Not for backend-only or non-UI tasks.

Frontend & DesignIn 2 lists30

Agent Browser

260

cafe3310/public-agent-skills

为 Agent 设计的自动化浏览器 CLI 工具,也能操作 Electron 桌面应用。当需要与网站交互(包括页面导航)时使用

AI, LLMs & Agents30

Guide

260

cafe3310/public-agent-skills

基于规范驱动与日志记录的轻量级人机协作项目开发与管理方案,包含 /guide load, /guide spec, /guide handoff, /guide test, /guide log 子命令。

Testing & QA30

Zig Testing

293

mohitmishra786/low-level-dev-skills

Zig testing skill for writing and running tests. Use when using zig build test, writing comptime tests, using test filters, working with test allocators to detect leaks, or using Zig's built-in fuzz testing (0.14+). Activates on queries about Zig tests, zig test, zig build test, comptime testing, test allocators, Zig fuzz testing, or detecting memory leaks in Zig tests.

Testing & QA36

Polyhaven Hdri Showcase

260

cafe3310/public-agent-skills

Render the same product across multiple HDRI environments and output a comparison grid. Trigger when asked to compare lighting setups, test different environments, show product in multiple settings, or create an HDRI comparison.

Testing & QA30

Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.