一键导入
test-in-browser
Test a feature in the browser using the Playwright MCP server
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Test a feature in the browser using the Playwright MCP server
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Creates a git commit from staged/unstaged changes with an AI-generated commit message based on the diff and agent context. Attaches a git note with the AI reasoning when significant decisions were made.
Simplifies and refines Python code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.
Simplifies and refines TypeScript/JavaScript code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.
| name | test-in-browser |
| description | Test a feature in the browser using the Playwright MCP server |
You have access to a Playwright MCP server that lets you control a headless Chromium browser. Use it to verify features work end-to-end by navigating the running app, interacting with elements, and checking results.
The app needs to be running before you can browse it. Check if it's already up:
curl -s -o /dev/null -w "%{http_code}" http://localhost:5000/ || echo "not running"
If not running, start it:
script/server &
sleep 3 # Wait for both servers to start
Start at the root page:
http://localhost:5000/Use accessibility snapshots (not screenshots) to understand what's on the page. The accessibility tree gives you semantic structure — headings, buttons, form fields, links — which is more reliable than visual inspection.
Use the MCP tools to:
After interactions, take another accessibility snapshot to confirm the page updated correctly. Check for:
Summarize what you tested and the results:
| URL | Description |
|---|---|
http://localhost:5000/ | Main page — renders Hello island with greeting form |
The app uses React Islands — server-rendered HTML with selective React hydration:
data-island attributes in the HTMLdata-island="hello") is the main interactive componentdata-props attribute from the serverThe Hello island at / has:
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/hello | List all greetings |
| POST | /api/hello | Create greeting ({"message": "text"}) |
| GET | /api/hello/:id | Get single greeting |
| DELETE | /api/hello/:id | Delete greeting (returns 204) |
/ → verify island hydrates and shows form