Skip to content
Solutions · by use case

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.

Skills:smoke-uat

What 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. 1

    Connect WebAgent

    Create an API key in the dashboard, then export it for the webagent CLI, or add the MCP server to Claude Code so your agent can call run_skill itself.

    sh
    export 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. 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.

    sh
    webagent skills run smoke-uat --url https://staging.example.com --report smoke.html
  3. 3

    Add steps and an expectation

    Steps are plain English and run after the page loads. expectText must be on the page once they finish.

    json
    { "url": "https://staging.example.com", "steps": ["click Pricing", "click Start Pro"], "expectText": "Checkout" }
  4. 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. 5

    Run it on every pull request

    webagent ci reads webagent.yml, runs each entry against your preview URL and exits 1 when a finding reaches failOn. 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. 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.

    sh
    webagent 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.

urlPage to smoke test (required).
stepsPlain-language steps to perform after the page loads, e.g. fill the form, submit.
expectTextText that must be on the page after the steps.
maxLinksHow many same-origin links to check (default 50).
uploadFileA session file to attach to the first file input before the steps.

Run your first check today.

Free plan: 20 credits, given once, no card.