Skip to content

Migrate to Smoketest

Convert existing browser test coverage into Smoketest tests you write in words.

View as Markdown

Smoketest is a good fit for end-to-end user journeys that should run in a real browser and produce a result, live progress, screenshots, and a replayable recording.

When you migrate, do not translate every selector and wait into another kind of selector. Translate the user intent: what page the user starts on, what they do, and what must be true at the end.

Migration workflow

  1. Pick the coverage that represents real user journeys.
  2. Keep unit, component, API-only, scraping, and native-mobile-only tests in their current tools.
  3. Install and sign in to the Smoketest CLI.
  4. Convert each selected journey into one test described in a sentence or two.
  5. Put secrets and test-user values in a Smoketest environment.
  6. Run the migrated tests against staging or preview URLs.
  7. Use recordings and run history to decide what to keep, split, or rewrite.

Quick setup

Shell
npm install --global @smoketest.sh/cli
smoketest auth login
smoketest projects create --name "Production" --url https://staging.example.com --use

If you use Codex or Claude Code, the Smoketest Agent Skills can draft the first pass from your repo:

Shell
codex plugin marketplace add smoketest-sh/skills
codex plugin add smoketest@smoketest

Then ask:

Text
Use $smoketest-explore to read this repo and draft Smoketest tests from the existing browser tests. Check the Smoketest CLI first, store secrets in environments, validate the manifest, and ask before applying.

Choose your source

What Smoketest replaces

Existing test detailSmoketest equivalent
Browser test file or recorded journeyA test with steps written in words
Shared login helperA sharedStep or environment-backed login steps
Base URL in configProject URL, or a run-scoped start URL from CLI/API
Test credentials in env varsSmoketest environment variables and secrets
CI job running a suiteCLI, API, GitHub triggers, or deployment webhooks
Video and debug artifactsRun history, screenshots, live view, and recording

What to keep

Smoketest is for browser end-to-end journeys. Keep these in specialized tools:

  • Unit tests and component tests
  • API contract tests
  • Load tests
  • Scrapers and PDF generation scripts
  • Native iOS or Android app automation
  • Very large data-matrix tests where one representative journey is enough for Smoketest

Next steps

On this page