Test a webapp feature with Playwright
/plugin marketplace add marcioaltoe/claude-craftkit/plugin install ui-tests@claude-craftkit<url>--url</url> <test-type>--test-type</test-type>
Run automated browser tests for your webapp using Playwright. Tests are saved to .web-tests/ in your current working directory.
Works from any directory - Saves test scripts and screenshots to your working directory's .web-tests/ folder.
When you run /test, Claude will:
.web-tests/scripts/.web-tests/screenshots/# Test specific feature
/test --test-type login
# Test with specific URL
/test --url http://localhost:3001 --test-type form
# Test responsive design
/test --test-type responsive
# Test page load
/test --url https://example.com --test-type page-load
login - Test login flow and authenticationform - Test form filling and submissionresponsive - Test across multiple viewports (desktop, tablet, mobile)page-load - Test if page loads correctlynavigation - Test navigation and routingcustom - Claude will ask what to test.web-tests/scripts/test-{type}-{timestamp}.jsCWD=$(pwd) cd <skill-dir> && node run.js .web-tests/scripts/test-*.js.web-tests/screenshots/your-repo/
└── .web-tests/
├── scripts/
│ └── test-login-2025-10-23.js
└── screenshots/
├── login-page-2025-10-23T12-30-45.png
└── dashboard-2025-10-23T12-30-50.png
Claude can use these environment variables:
CWD - Your current working directory (auto-set)HEADLESS - Set to true for background execution (default: false)SLOW_MO - Slow down actions for debugging (default: 0)# Test login with credentials
/test --test-type login
# Test contact form
/test --test-type form --url http://localhost:3001/contact
# Test homepage across viewports
/test --test-type responsive --url http://localhost:3001
.web-tests/screenshots/.web-tests/scripts//screenshot - Take screenshots of pages/check - Check for broken links or issues