Skip to main content
QA Training
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

How to use this prompt

  1. 1Copy the prompt template using the Copy button above.
  2. 2Open your preferred AI assistant (ChatGPT, Claude, Gemini, Copilot, etc.).
  3. 3Paste the prompt and replace the {{placeholder}} variables with your project-specific values.
  4. 4Review the output - treat it as a professional first draft, not a final deliverable.
  5. 5Iterate: refine the output by asking follow-up questions or providing more context.

Frequently asked questions

Which AI models work best with this prompt?v

This prompt works with any capable language model including ChatGPT (GPT-4o), Claude (3.5+), Gemini (1.5 Pro+), and GitHub Copilot Chat. More capable models produce more complete and accurate outputs.

How do I adapt the prompt for a different framework?v

Replace the framework placeholder with your target framework and update any framework-specific syntax references in the output. The structure and logic of the generated tests will transfer across frameworks.

Can I use this prompt commercially?v

Yes. All prompts on QATraining.uk are free to use for personal and commercial QA work. Attribution is appreciated but not required.