LeadUp QA Test Case Generator
Purpose
Take a feature, screen, repo, or release scope and produce a structured
QA plan that covers the critical user flows, edge cases, responsive
behavior, admin paths, payments / deploy paths, and the acceptance
criteria the team can sign against.
When to use
Use when the user wants test cases or a QA plan. Do not trigger for
running the app (use leadup-browser-playwright-tester), security
audits (use leadup-security-review), or deployment readiness checks
(use leadup-deploy-checker).
Trigger phrases: "test cases", "QA plan", "manual testing", "Playwright
tests", "test this app", "create test cases", "test plan", "regression
suite".
Inputs needed
- Feature / repo / release scope.
- Stack (Next.js, Flutter, Django, etc.).
- User roles involved.
- Critical user flows the team can name (booking, payment, signup, …).
- Existing tests and what coverage they have.
- Regulated category? (payments, PII, medical, kids)
- Environments available (local Docker, staging, prod).
Ask at most 2 clarifying questions if scope is unclear.
Tools/resources to use
references/qa-test-framework.md — flow shape, edge-case taxonomy.
assets/qa-test-cases.template.md — output shape.
leadup-browser-playwright-tester — to actually run UI tests.
leadup-deploy-checker — to gate release.
leadup-security-review — for security-sensitive flows.
leadup-pii-risk-reviewer — for PII flows.
leadup-release-manager — for the release sign-off pass.
Step-by-step workflow
- Restate scope (feature / release / repo).
- List critical user flows (5–10) per role, end-to-end.
- For each flow, write:
- Manual happy-path test (steps + expected).
- 3–5 edge cases (empty, invalid, slow network, locked state, …).
- Responsive checks (mobile 360, tablet 768, desktop 1280+).
- Accessibility quick check (focus, contrast, labels).
- Admin tests: critical actions (CRUD, role gates, exports,
audit logging, impersonate).
- Payment / deploy tests if relevant: Razorpay test flow, refund,
webhook handling, GST invoice, env switch, migration safety.
- Playwright spec outline: file names + describe blocks (without
writing the code unless asked).
- Acceptance criteria: 1 testable line per deliverable.
- Hand off to
leadup-browser-playwright-tester for execution.
Required output format
One Markdown plan with these sections, in this order:
- Brief restate — scope, stack, environments.
- Critical user flows — per role, numbered.
- Manual test cases — table per flow: step · expected · pass/fail.
- Edge cases — per flow: list of 3–5 with what to check.
- Responsive / accessibility — checks per screen.
- Admin tests — table: action · role · expected · audit log entry.
- Payment / deploy tests — if relevant.
- Playwright spec outline — file list with
describe blocks.
- Acceptance criteria — 1 line per deliverable.
- Hand-offs — to other LeadUp skills.
Safety rules
- Do not invent endpoints, fields, or flows that don't exist —
flag with "verify" if unsure.
- Do not propose tests that require real production data or real
customer PII. Use test fixtures.
- For payments: test in test mode only; use Razorpay test keys
(placeholders, not real).
- For PII flows: test masking, audit log entries, export permissions.
- For regulated categories: cover refusal cases and disclaimer text.
- Default to mobile-first (LeadUp clients are mostly on mobile).
- For India: include UPI, GST invoice, regional language checks where
applicable.
- Defer execution to
leadup-browser-playwright-tester.
- Defer release gating to
leadup-release-manager.
Common mistakes
- 200 test cases with no priority — team skips them.
- Only happy-path tests, no edge cases.
- Tests written against URLs that don't exist yet.
- Skipping mobile / responsive.
- No audit log checks on admin tests.
- Payment tests on live keys.
- Treating QA as the dev's problem alone — no acceptance criteria for
the client / PM.
Troubleshooting
- No staging env: write Docker-only test plan; note what needs
prod-like to validate.
- Mobile-heavy app: write 60% mobile / 30% desktop / 10% tablet
cases; cover one-handed thumb reach.
- AI feature involved: include golden / edge / jailbreak cases per
leadup-ai-feature-planner test plan.
- Regulated category: include refusal tests, disclaimer text
checks, PII masking tests, audit log entries.
- Old repo with no tests: deliver "v1 QA plan" = top 5 flows
manual + 1 Playwright smoke; phase 2 expands.
- Multi-tenant: include tenant isolation tests (org A cannot see
org B's data).
Test prompts
Should trigger (5)
- "Generate test cases for our salon booking flow."
- "QA plan for the admin panel of our clinic SaaS."
- "Manual + Playwright tests for our payment integration."
- "Test cases for the WhatsApp reminder feature."
- "Create a test plan for the next release."
Should NOT trigger (3)
- "Run Playwright on the app now." (→
leadup-browser-playwright-tester)
- "Is the deploy ready or not?" (→
leadup-deploy-checker)
- "Audit security of this auth flow." (→
leadup-security-review)
Functional test cases (2)
- Given "salon booking SaaS, Next.js, multi-tenant, Razorpay
payments", return a QA plan with 5–10 critical flows per role, edge
cases for each, mobile checks, admin tests with audit log
verification, Razorpay test-mode flows, GST invoice export check,
and Playwright spec outline.
- Given a regulated category (clinic SaaS with patient PII), return
a plan that includes PII masking tests, audit log entries on
reveal, tenant isolation tests, refusal tests on disallowed
actions, and a hand-off to
leadup-pii-risk-reviewer and
leadup-security-review.
Success criteria
- All 10 sections present in order.
- 5–10 critical flows per role.
- Each flow has happy path + 3–5 edge cases.
- Mobile / responsive included.
- Admin tests include audit log verification.
- Payments tested in test mode only.
- Playwright spec outline names files + describe blocks.
- Acceptance criteria are 1 testable line each.
- No real PII or live keys anywhere in the plan.
1---2name: leadup-qa-test-case-generator3description: Generate manual and automated test cases for a LeadUp website, SaaS, admin panel, API, mobile app, or deployment — including critical user flows, edge cases, Playwright test ideas, mobile/responsive checks, admin panel tests, payment/deploy tests, and clear acceptance criteria. Use when the user says "test cases", "QA plan", "manual testing", "Playwright tests", "test this app", or "create test cases".4---56# LeadUp QA Test Case Generator78## Purpose910Take a feature, screen, repo, or release scope and produce a structured11QA plan that covers the critical user flows, edge cases, responsive12behavior, admin paths, payments / deploy paths, and the acceptance13criteria the team can sign against.1415## When to use1617Use when the user wants test cases or a QA plan. Do **not** trigger for18running the app (use `leadup-browser-playwright-tester`), security19audits (use `leadup-security-review`), or deployment readiness checks20(use `leadup-deploy-checker`).2122Trigger phrases: "test cases", "QA plan", "manual testing", "Playwright23tests", "test this app", "create test cases", "test plan", "regression24suite".2526## Inputs needed2728- Feature / repo / release scope.29- Stack (Next.js, Flutter, Django, etc.).30- User roles involved.31- Critical user flows the team can name (booking, payment, signup, …).32- Existing tests and what coverage they have.33- Regulated category? (payments, PII, medical, kids)34- Environments available (local Docker, staging, prod).3536Ask at most 2 clarifying questions if scope is unclear.3738## Tools/resources to use3940- `references/qa-test-framework.md` — flow shape, edge-case taxonomy.41- `assets/qa-test-cases.template.md` — output shape.42- `leadup-browser-playwright-tester` — to actually run UI tests.43- `leadup-deploy-checker` — to gate release.44- `leadup-security-review` — for security-sensitive flows.45- `leadup-pii-risk-reviewer` — for PII flows.46- `leadup-release-manager` — for the release sign-off pass.4748## Step-by-step workflow49501. **Restate scope** (feature / release / repo).512. **List critical user flows** (5–10) per role, end-to-end.523. **For each flow**, write:53 - Manual happy-path test (steps + expected).54 - 3–5 edge cases (empty, invalid, slow network, locked state, …).55 - Responsive checks (mobile 360, tablet 768, desktop 1280+).56 - Accessibility quick check (focus, contrast, labels).574. **Admin tests**: critical actions (CRUD, role gates, exports,58 audit logging, impersonate).595. **Payment / deploy tests** if relevant: Razorpay test flow, refund,60 webhook handling, GST invoice, env switch, migration safety.616. **Playwright spec outline**: file names + describe blocks (without62 writing the code unless asked).637. **Acceptance criteria**: 1 testable line per deliverable.648. **Hand off** to `leadup-browser-playwright-tester` for execution.6566## Required output format6768One Markdown plan with these sections, in this order:69701. **Brief restate** — scope, stack, environments.712. **Critical user flows** — per role, numbered.723. **Manual test cases** — table per flow: step · expected · pass/fail.734. **Edge cases** — per flow: list of 3–5 with what to check.745. **Responsive / accessibility** — checks per screen.756. **Admin tests** — table: action · role · expected · audit log entry.767. **Payment / deploy tests** — if relevant.778. **Playwright spec outline** — file list with `describe` blocks.789. **Acceptance criteria** — 1 line per deliverable.7910. **Hand-offs** — to other LeadUp skills.8081## Safety rules8283- Do **not** invent endpoints, fields, or flows that don't exist —84 flag with "verify" if unsure.85- Do **not** propose tests that require real production data or real86 customer PII. Use test fixtures.87- For payments: test in **test mode** only; use Razorpay test keys88 (placeholders, not real).89- For PII flows: test masking, audit log entries, export permissions.90- For regulated categories: cover refusal cases and disclaimer text.91- Default to mobile-first (LeadUp clients are mostly on mobile).92- For India: include UPI, GST invoice, regional language checks where93 applicable.94- Defer execution to `leadup-browser-playwright-tester`.95- Defer release gating to `leadup-release-manager`.9697## Common mistakes9899- 200 test cases with no priority — team skips them.100- Only happy-path tests, no edge cases.101- Tests written against URLs that don't exist yet.102- Skipping mobile / responsive.103- No audit log checks on admin tests.104- Payment tests on live keys.105- Treating QA as the dev's problem alone — no acceptance criteria for106 the client / PM.107108## Troubleshooting109110- **No staging env**: write Docker-only test plan; note what needs111 prod-like to validate.112- **Mobile-heavy app**: write 60% mobile / 30% desktop / 10% tablet113 cases; cover one-handed thumb reach.114- **AI feature involved**: include golden / edge / jailbreak cases per115 `leadup-ai-feature-planner` test plan.116- **Regulated category**: include refusal tests, disclaimer text117 checks, PII masking tests, audit log entries.118- **Old repo with no tests**: deliver "v1 QA plan" = top 5 flows119 manual + 1 Playwright smoke; phase 2 expands.120- **Multi-tenant**: include tenant isolation tests (org A cannot see121 org B's data).122123## Test prompts124125### Should trigger (5)1261. "Generate test cases for our salon booking flow."1272. "QA plan for the admin panel of our clinic SaaS."1283. "Manual + Playwright tests for our payment integration."1294. "Test cases for the WhatsApp reminder feature."1305. "Create a test plan for the next release."131132### Should NOT trigger (3)1331. "Run Playwright on the app now." (→ `leadup-browser-playwright-tester`)1342. "Is the deploy ready or not?" (→ `leadup-deploy-checker`)1353. "Audit security of this auth flow." (→ `leadup-security-review`)136137### Functional test cases (2)1381. Given "salon booking SaaS, Next.js, multi-tenant, Razorpay139 payments", return a QA plan with 5–10 critical flows per role, edge140 cases for each, mobile checks, admin tests with audit log141 verification, Razorpay test-mode flows, GST invoice export check,142 and Playwright spec outline.1432. Given a regulated category (clinic SaaS with patient PII), return144 a plan that includes PII masking tests, audit log entries on145 reveal, tenant isolation tests, refusal tests on disallowed146 actions, and a hand-off to `leadup-pii-risk-reviewer` and147 `leadup-security-review`.148149## Success criteria150151- All 10 sections present in order.152- 5–10 critical flows per role.153- Each flow has happy path + 3–5 edge cases.154- Mobile / responsive included.155- Admin tests include audit log verification.156- Payments tested in test mode only.157- Playwright spec outline names files + describe blocks.158- Acceptance criteria are 1 testable line each.159- No real PII or live keys anywhere in the plan.