一键导入
playwright
Browser automation and frontend testing and evaluation with Playwright MCP
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Browser automation and frontend testing and evaluation with Playwright MCP
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Check PR status and verify GitHub Actions CI workflows. Use after git push or when user asks to check PR/CI status.
Download and review E2E test screenshots from GitHub Pages with duplicate detection and test context. Use when user asks to "review screenshots", "check test images", "view e2e screenshots", or after running PR checks to visually evaluate UI changes. Includes screenshot generation guidelines for QA developers.
Fit images into specific dimensions with fit, fill, or stretch modes. Supports auto-trimming borders and adding margins. Use this skill when the user needs to fit images into exact dimensions.
Search and download SVG icons and illustrations from free online sources (Heroicons, Lucide, Feather, Bootstrap Icons, Tabler). Use when working with SVG icons, need UI graphics, or want to add icons to a project. Requires httpx package.
Convert backgrounds in images to transparent PNG files using flood fill from edges, with optional color filling and edge smoothing. Use this skill when the user needs to make images background transparent.
Resize, crop, and rotate images with aspect ratio preservation. Use this skill when the user needs to resize images by width/height, crop to specific coordinates, or rotate images.
| name | playwright |
| description | Browser automation and frontend testing and evaluation with Playwright MCP |
| tags | ["frontend","testing","browser","e2e","accessibility"] |
Use this skill for browser automation, frontend testing, and UI validation using Playwright MCP tools.
✅ Use for:
❌ Do NOT use for:
You have access to all mcp__playwright__* tools:
browser_navigate - Navigate to URLsbrowser_snapshot - Get accessibility snapshot (better than screenshot for interactions)browser_take_screenshot - Capture visual statebrowser_click - Click elementsbrowser_type - Type into fieldsbrowser_select_option - Select dropdown optionsbrowser_fill_form - Fill multiple form fields at oncebrowser_console_messages - Check for console errorsbrowser_network_requests - Monitor network activitybrowser_evaluate - Run JavaScript in page contextbrowser_tabs - Manage browser tabsbrowser_wait_for - Wait for text or time1. Navigate to the updated page/component
2. Take a baseline screenshot
3. Test the new functionality step by step
4. Verify no existing features are broken
5. Test responsive behavior
6. Check accessibility compliance
1. Navigate to the page before changes
2. Take reference screenshots at multiple breakpoints
3. Apply code changes
4. Take new screenshots with same dimensions
5. Compare and report visual differences
1. Start at the entry point (homepage/landing)
2. Follow the complete user flow step by step
3. Test each interaction and transition
4. Verify the expected end state is reached
5. Check for any broken links or errors
[data-battle-participant="player"], [class*="diceContainer"])h2, div, span) or text contentstart.jpg, after-click.jpg)browser_snapshot for getting page structure for interactionsbrowser_take_screenshot for visual documentationwaitForTimeout() - use expect(element).toBeVisible() instead1. Navigate to page with component
2. Take baseline screenshot
3. Interact with component (click, type, etc.)
4. Verify expected state changes
5. Screenshot final state
6. Check console for errors
1. Navigate to form page
2. Test validation with empty/invalid data
3. Fill form with valid data
4. Submit and verify success state
5. Test keyboard navigation
6. Verify error messages are accessible
1. Resize browser to desktop (1920x1080)
2. Screenshot and test functionality
3. Resize to tablet (768x1024)
4. Screenshot and test functionality
5. Resize to mobile (375x667)
6. Screenshot and test functionality
7. Verify no horizontal scrolling
8. Check touch target sizes
For this project, the development server runs on:
Always ensure the dev server is running before testing.
Common Issues:
When activated, you should:
browser_navigate to reach the pagebrowser_snapshot and browser_take_screenshotRemember to use descriptive filenames for screenshots and always check the console for errors after interactions.