Run frontend tests
qa_run_uiRun UI tests by executing Playwright specs or crawling a React frontend to catch navigation errors, HTTP failures, console errors, and empty renders, capturing screenshots on each failure.
Instructions
Two layers against the React frontend. mode=specs runs the fixed Playwright specs in tests/ui (skipped with a clear message if playwright.config.ts is missing). mode=crawl logs in with a role and BFS-crawls same-origin links, failing a route on navigation error, HTTP >= 400, console errors, failing XHRs or an effectively empty render, with a full-page screenshot for every failure. If the login itself fails the crawl stops immediately with one critical result. mode=both runs the two in order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Playwright --grep filter for the specs layer. | |
| mode | Yes | Which UI layer to run. | |
| role | No | Role used to log into the UI. Defaults to the first configured role. | |
| maxPages | No | Crawl page cap. Defaults to frontend.crawl.maxPages. | |
| startPaths | No | Crawl entry points, e.g. ["/", "/orders"]. Defaults to ["/"]. |