-
Testing
End-to-end test my signup-to-paid flow
Script a browser-level test of the full path from landing on the site to a completed payment, the flow that pays for everything.
Free Prompt
The single most important flow in my app is: a stranger lands on the site, signs up, and becomes a paying customer. I want an end-to-end test that proves this works.
Set up a browser-level test (Playwright, Cypress, or whatever fits my stack; recommend one if I have none and wait for my go-ahead) that walks the real flow:
1. Load the landing page and follow the signup call to action.
2. Complete signup with a fresh test account.
3. Verify any required email confirmation step, using a test inbox or intercepted email.
4. Navigate to the pricing or upgrade page.
5. Complete checkout using the payment provider's test card numbers.
6. Assert the account now shows as paid: correct plan in the UI, correct state in the database, receipt or welcome email triggered.
Then write the negative variant: a declined test card at checkout should show a clear error to the user and must not grant access to paid features.
Keep the test data isolated. It should create its own account and clean up after itself, or run only against a dedicated test environment. It must never run against production.
When done, run it and show me the result. If any step fails, show me the exact step and the page state at failure, because a broken step here is a launch blocker, not a test problem.
What This Does / How This Helps
This builds a browser-level test that drives your real signup and checkout flow end to end, including the declined-card case, against a test environment. Unit tests can all pass while the actual customer journey is broken, because the bugs live in the seams: a misconfigured redirect, a webhook that never fires, a plan flag that never flips. This flow is how you make money, and it's the one most worth proving works on every deploy. A failure here on launch day is the most expensive bug your app can ship.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).