Loading...
Loading...
L2 AI-driven web UI testing for a React/Vite dashboard app. Originally authored against the Onsager Dashboard (the body's route table + file paths are Onsager-shaped); other React dashboards fork the procedure and substitute their own routes / test paths. Use when testing UI on PRs, triaging L1 test failures, or verifying UI behavior at desktop + mobile viewports. Triggers include "test the UI", "check the dashboard", "triage L1 failure", "run L2 tests", "validate this PR", "exploratory test the web app".
npx skill4agent add onsager-ai/dev-skills web-testingAdopting in another repo: the procedure (read diff → map to routes → run agent-browser at two viewports → screenshot → verdict) is repo-agnostic. The route table, test paths, and verdict schema below are examples from. Fork the skill and replace those concrete bits for your own dashboard.onsager-ai/onsager
apps/dashboard/**crates/stiglab/deploy/Dockerfilestiglabsynodichttp://localhost:3000| Route | Page | Heading |
|---|---|---|
| Factory overview | |
| Sessions list | |
| Session detail | — (dynamic) |
| Nodes list | |
| Artifacts list | |
| Event spine viewer | — (dynamic) |
| Governance | |
| Settings + credentials | |
agent-browser set viewport 1280 720agent-browser set viewport 375 812md:git diff $DIFF_RANGEDIFF_RANGEsrc/pages/SessionsPage.tsx/sessionssrc/components/layout/**agent-browser open http://localhost:3000<route>agent-browser screenshot --screenshot-dir /tmp/l2-screenshots{route-slug}-{desktop|mobile}.pngapps/dashboard/tests/smoke/apps/dashboard/tests/e2e/tests/l2-verdict-schema.jsonPASSFAILviewports[].issues[]apps/dashboard/tests/e2e/http://localhost:3000tests/l2-triage-schema.json