Skip to main content
Testing on Production Without Placing Real Orders

Testing on Production Without Placing Real Orders

Marcel Veselka
Marcel VeselkaCEO, Wopee.io
Dec 3, 2026
7 min read

In November, five people who tried Wopee.io on their live app got more than test results:

  • a real cash-on-delivery order in their shop;
  • a new account in their app on every run of a sign-up test;
  • a sign-up left half-finished in their database;
  • a sold-out item put in a real cart and taken to checkout.

Nothing broke. But each one is a record a real person might act on: an order someone packs, an account someone counts as a new user.

The agent did what it was asked. "Test the checkout" on a live shop ends with an order, unless you say where to stop. Here is how to say it.

Why an AI agent ends up buying

A scripted test does exactly the clicks you recorded. An AI testing agent is given a goal and works out the clicks. That is why it survives a renamed button. It is also why it finishes the job: if the goal is "check out", the last click is Place order.

Three things make this more likely on a first try:

  • The first analysis runs tests on its own. After exploring your app, the agent runs up to 4 of the tests it wrote, so you start with real results. On a shop, one of them is almost always the main flow: search, cart, checkout.
  • Cash on delivery needs no card. A payment form without a real card stops at the bank. Cash on delivery, invoice or "pay in store" goes straight through.
  • Sign-up is a test like any other. If your sign-up needs no e-mail code, every run of that test creates one more real account.

The agent follows the rules you give it. It does not yet stop by itself before a payment or an order. We're adding that. Until it ships, the five rules below are how you keep it from buying.

Rule 1: test on staging when you can

The safest live order is the one that never reaches production. If you have any of these, use it:

  • A staging or preview deployment with its own database.
  • Your payment provider's test mode. Stripe, Adyen, PayPal and the rest have a sandbox with test cards that never charge anyone. Test cards don't work on a live account, which is what you want.
  • Seeded test data: products that are always in stock, a coupon that always works, accounts that reset.

On Vercel or Netlify, a preview deployment is often one click away. If it's protected, see Can the agent reach your app?

If production is the only environment you have, the next four rules are for you.

Rule 2: give the rules before the first analysis

The first analysis runs tests at the end, so the rules must be in place before it starts, not after.

On a live app:

  1. In NEW PROJECT, paste the URL and open Advanced settings.
  2. Turn off Explore the app and generate tests. The button changes to Create project.
  3. Open More › Settings › General › Project context, click Switch to markdown and paste the rules below.
  4. Add the test account (Rule 4).
  5. Start a New analysis.

The project context goes to the test generator and the agent on every run. Paste this, and adapt the names to your app:

## Always and never

- This is the live app. Real customers use it.
- Never place an order, submit a payment or confirm a booking.
  Stop on the last page before it and check what is shown there.
- Never choose cash on delivery, invoice, bank transfer or pay in store.
- Never create a new account. Sign in with ${TESTING_USERNAME} and ${TESTING_PASSWORD}.
- Never send e-mails, messages or invitations to anyone.
- Never change or delete records the test did not create.
- Never change the password or e-mail of the test account.

The full template, with sections for business rules and test data, is in the project context guide.

Rule 3: write checkout tests that stop one click early

You can test almost all of a checkout without finishing it. Everything you care about is visible before the last click: prices, the discount, shipping, the total, the payment options.

Write the stop into the test itself, as a MUST NOT:

GOAL: A signed-in customer can take two units of one in-stock product
      to the payment step with the right totals.
PASSES WHEN:
- The cart shows quantity 2 and a subtotal of 2 × the listed price.
- The payment step shows subtotal + shipping = total, to the cent.
- Card payment is offered.
MUST NOT:
- Click "Place order", "Pay" or "Confirm".
- Choose cash on delivery or invoice.
DATA: Sign in with ${TESTING_USERNAME} and ${TESTING_PASSWORD}.

This is an intent-driven test: the goal and the proof, no clicks. The agent finds the path. The MUST NOT lines decide where it stops. A test that reaches its goal by placing the order fails.

What this test does not prove: that the order is saved and the payment goes through. Test that part on staging, or with a refund flow you trust, not by buying on production every morning.

Rule 4: use an account made for testing

Give the agent one account, created by you, used by nobody else:

  • Flag it in your own system. A name like "Test Customer" and an address on your own domain, so whoever packs orders or counts sign-ups can filter it out.
  • No real card saved on it. Then a mistake can't charge anything.
  • Not an admin, unless admin features are what you test.

Add it in Wopee.io under More › Settings › Environment Variables as TESTING_USERNAME and TESTING_PASSWORD. The agent never sees the values, only the names. Test an app behind a login.

Sign-up tests: don't run them on production. Every run creates an account. If you must, give each new account a recognisable address (test+<date>@yourdomain.com) and delete those accounts regularly.

Rule 5: read the first runs before you schedule anything

A test plan that runs every morning repeats whatever a test does. Before you put a test into a plan:

  • Open the run's report and read the steps. Every click and every field the agent filled is there.
  • Look for the last page it reached. Was it the payment page, or the thank-you page?
  • Check your own admin: orders, new accounts, messages sent.

Only then add it to a daily plan.

A test already placed an order. Now what?

  1. Stop what's scheduled. Pause any test plan that contains the test.
  2. Find what it did. The run report lists every step with a screenshot: what it added, which address it used, which button it pressed last.
  3. Clean up in your app. Cancel the order, delete the account, tell whoever would act on it.
  4. Add the MUST NOT. Put the stop into the test's description and the rules into the project context (rules 2 and 3).
  5. Re-run that one test and check the last page it reached.

Checklist

  • Staging or a payment sandbox if you have one.
  • On a live app: exploration off at creation, project context with the never-list in place, then a new analysis.
  • Checkout tests stop before "Place order", with that stop as a MUST NOT.
  • One flagged test account with no real card saved.
  • No sign-up tests on production.
  • The first runs read before anything is scheduled.

Try it on your app with the rules in place: start free at cmd.wopee.io. Not sure what's safe to run on your shop? Book a free 15-minute call and we'll set it up with you.

More reading: Testing apps built with Vercel, Lovable or Base44 · AI Agent vs a Vibe-Coded App: 5 of 5 Bugs

Sources

  1. Side effects seen in Wopee.io sign-ups' projects, 19–26 Nov 2026, counts only.
  2. Wopee.io docs: Project context, Intent-driven and scripted tests, Read your first results.
Share

Keep reading

All posts