UI Testing with Playwright
Use Playwright MCP to perform UI testing on the running application at http://localhost:3000.
Usage
- •
/test-ui— Full test of all modules - •
/test-ui dashboard— Test dashboard only - •
/test-ui endpoints— Test endpoint CRUD - •
/test-ui proxy— Test proxy configuration - •
/test-ui logs— Test request logs - •
/test-ui scenarios— Test scenarios - •
/test-ui import-export— Test import/export - •
/test-ui dark— Test dark mode - •
/test-ui i18n— Test language switching - •
/test-ui responsive— Test responsive layouts (768px, 375px)
Test Flow Per Module
Dashboard
- •Navigate to
/ - •Verify stats cards (Total Endpoints, Active, Rules, Requests)
- •Verify endpoint overview table loads
- •Verify recent logs section
- •Click an endpoint → verify navigation
Endpoints
- •Navigate to
/endpoints - •Create endpoint (fill form, submit, verify in list)
- •Search/filter endpoints
- •Edit endpoint (modify fields, save)
- •Toggle active/inactive
- •Set default response
- •Delete endpoint (confirm dialog)
- •Batch operations
Proxy
- •Navigate to
/proxy - •Create proxy config (fill target URL, settings)
- •Toggle active on/off
- •Toggle recording on/off
- •Edit proxy config
- •Delete proxy config
Logs
- •Navigate to
/logs - •Verify log table loads
- •Filter by method / status
- •Click log row → verify detail modal
- •Clear logs
Scenarios
- •Navigate to
/scenarios - •Create scenario (name, initial state)
- •View scenario detail
- •Add steps
- •Reset state
- •Toggle active
Import/Export
- •Navigate to
/import-export - •Test export (download JSON)
- •Test import JSON tab
- •Test import OpenAPI tab
Output
After testing, provide a summary table:
code
| Module | Test | Result | |--------|------|--------| | Dashboard | Stats cards load | PASS/FAIL | | ... | ... | ... |
Categorize bugs as FE (frontend) or BE (backend) with severity.