Smoke tests
Key pages load, links work, the console is clean.
smoke-uat is the quickest check that a deploy did not break anything obvious: status code, a heading, the accessibility basics, same-origin links and console errors, plus any plain-language steps you add.
smoke-uatWhat you get
- Pass or fail per step
- Broken links
- Console errors
- Screenshots on failure
Step by step
From an API key to a report, then onto every pull request.
- 1
Connect WebAgent
Create an API key in the dashboard, then export it for the
webagentCLI, or add the MCP server to Claude Code so your agent can callrun_skillitself.shexport WEBAGENT_API_URL=https://api.example.com WEBAGENT_API_KEY=… # or hand the browser to Claude Code claude mcp add webagent -e WEBAGENT_API_URL=$WEBAGENT_API_URL -e WEBAGENT_API_KEY=$WEBAGENT_API_KEY -- npx -y @webagent/mcp - 2
Run it once
Run the skill against a page. The CLI exits 1 when the run fails, so it drops straight into any script.
shwebagent skills run smoke-uat --url https://staging.example.com --report smoke.html - 3
Add steps and an expectation
Steps are plain English and run after the page loads.
expectTextmust be on the page once they finish.json{ "url": "https://staging.example.com", "steps": ["click Pricing", "click Start Pro"], "expectText": "Checkout" } - 4
Read the report
The run finishes with a summary line and findings grouped by severity, each with its evidence. Open the HTML report to share one page instead of a pile of screenshots.
- 5
Run it on every pull request
webagent cireadswebagent.yml, runs each entry against your preview URL and exits 1 when a finding reachesfailOn. It writes JUnit, HTML and SARIF, and the GitHub Action posts one PR comment.yaml# webagent.yml baseUrl: ${{ env.PREVIEW_URL }} failOn: high runs: - skill: smoke-uat inputs: { url: / } report: [junit, html, sarif] - 6
Put it on a schedule
A schedule runs the skill on a cron, for example every morning as synthetic monitoring. Each run is an ordinary skill run with its own report.
shwebagent schedules create smoke-uat --cron "0 9 * * *" --url https://staging.example.com
Inputs
For smoke-uat. Pass them as flags, JSON or in plain words to your agent.
| url | Page to smoke test (required). |
|---|---|
| steps | Plain-language steps to perform after the page loads, e.g. fill the form, submit. |
| expectText | Text that must be on the page after the steps. |
| maxLinks | How many same-origin links to check (default 50). |
| uploadFile | A session file to attach to the first file input before the steps. |
Related
Run your first check today.
Free plan: 20 credits, given once, no card.