Agent skill
web-test
Browser-based QA testing with Playwright MCP. Triggers on "test in browser", "QA test", "visual test", "check the page".
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/web-test
SKILL.md
Web Test
Browser-based QA testing using Playwright MCP to verify UI, interactions, and responsive behavior.
When to Use
- After implementing a new page or feature
- When verifying responsive design
- Testing form submissions
- Checking animations and transitions
- Verifying navigation and links
When NOT to Use
- Unit testing logic (use Jest/Vitest instead)
- Testing API routes directly (use curl or Postman)
Prerequisites
- Dev server running (
npm run dev) - Playwright MCP configured in
.cursor/mcp.json
Core Principles
- Test on multiple viewport sizes (mobile 375px, tablet 768px, desktop 1280px)
- Verify visual appearance matches design intent
- Test user interactions (clicks, form fills, navigation)
- Check for console errors
Test Workflow
Phase 1: Test Case Design
Goal: Define what to test.
- List all pages/features to test
- Define test scenarios per page
- Identify edge cases (empty states, long text, etc.)
- Define viewport sizes to test
Phase 2: Browser Testing
Goal: Execute tests in browser.
Actions:
- Navigate to the page under test
- Take screenshots at each viewport size
- Interact with clickable elements
- Fill and submit forms
- Verify navigation works
- Check for console errors
Viewport sizes:
- Mobile: 375 x 812
- Tablet: 768 x 1024
- Desktop: 1280 x 800
- Wide: 1920 x 1080
Phase 3: Issue Analysis
Goal: Document issues found.
Format:
## Test Results: [Page/Feature]
### Passed
- [x] [test case] — [viewport]
### Issues Found
- [ ] **[severity]**: [description]
- Page: [URL]
- Viewport: [size]
- Expected: [what should happen]
- Actual: [what happens]
- Screenshot: [if available]
### Recommendations
- [fix suggestion]
Related Skills
| Skill | When to Chain |
|---|---|
| feature-dev | Test after feature implementation |
| review-pr | Test before PR review |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?