Skip to main content
QATraining
All Prompts
beginner
Featured

Deployment Smoke Test Suite

Generate a lean, fast smoke test suite in Playwright that verifies your critical path is alive after every deployment — covering app load, auth, nav, API health, and one full happy-path flow.

Prompt Template

You are an SDET building a smoke test suite for {{appName}} using Playwright.

Application: {{appDescription}}
Critical user flows: {{criticalFlows}}
Third-party integrations: {{integrations}}

Generate a lean smoke test suite with the following philosophy:
- Cover the **happy path only** — no edge cases
- Each test completes in < 30 seconds
- Zero test interdependencies (fully self-contained)
- Parallel-safe: no shared mutable state
- Purpose: gates the full regression suite — if smoke fails, nothing else runs

**Tests to generate:**

1. **App Health** — page loads, title correct, no JS console errors, no failed network requests
2. **Authentication** — login with valid credentials, verify correct landing page and user identity
3. **Primary Navigation** — all top-nav links resolve, return 200, no 404/500 responses
4. **Happy Path Flow** — complete one flow from {{criticalFlows}} end to end
5. **API Health** — key endpoints respond with 200 within {{slaMs}}ms
6. **Database Read** — a non-destructive read operation returns expected shape
7. **Third-Party Integrations** — {{integrations}} respond correctly (or graceful fallback shown)

**Supporting files:**
- `playwright.config.ts` project "smoke" with: 1 retry, 30 s timeout, 4 workers
- All tests tagged `@smoke` for selective runs (`--grep @smoke`)
- GitHub Actions step: runs only smoke tests on every PR push
- Slack/webhook notification step on smoke failure with test name and screenshot link
- README.md section: "Running smoke tests locally" with command

**Constraints:**
- Use Playwright's built-in request interception for API health checks
- No test data setup/teardown — smoke tests use pre-existing stable data
- Fail fast: first failure stops the smoke suite (`--bail 1`)
Tags
smoke-testing
deployment
sanity
playwright
ci-gate