webapp-testing
active0x0d6756816774894cb363d35c3b97acf98a123f82ea405e6d18f6cf255935f3c8
Interact with and test local web applications using Playwright: verify frontend functionality, debug UI behavior, capture browser screenshots, and read browser logs.
Skill body
Web Application Testing
Test local web apps by writing native Playwright scripts.
Decision tree
- Static HTML → read the file to find selectors → write a Playwright script.
- Dynamic app → ensure the dev server is running, then drive the page with Playwright (navigate, click, type, assert), capturing screenshots and console logs.
Tips
- Prefer role/label selectors over brittle CSS.
- Capture a screenshot + console log on failure for fast debugging.
- Manage server lifecycle around the test run.