---
title: "Write end-to-end tests for the flows that make you money"
description: "Dev writes end-to-end tests for signup, checkout and upgrades in Cypress, proves each one stable, runs real browsers in BrowserStack and adds them to GitLab."
url: https://prosyo.com/ai-agents/use-cases/dev-end-to-end-tests/
type: use_case
published: 2026-11-26T11:34:58+00:00
updated: 2026-11-26T11:34:58+00:00
author: "Shubham K."
language: en-US
---

# Write end-to-end tests for the flows that make you money

> Dev writes end-to-end tests for signup, checkout and upgrades in Cypress, proves each one stable, runs real browsers in BrowserStack and adds them to GitLab.

Ask a small team which test they wish they had, and the answer is always the same: one that clicks through checkout before every release. Instead there are unit tests for helpers nobody worries about, and a manual check that someone does when they remember. Then a change to the address form breaks checkout on Safari only, and you find out from a refund request three days later.

Dev writes the end-to-end tests that protect revenue: signup, checkout, upgrade, password reset, whatever your business depends on. It walks each flow like a customer, writes tests that run the same way every time, proves they are stable, checks them on real browsers and phones, and adds them to your pipeline. After that, every merge request has to get through the money paths before it ships.

## When you ask for it

This job runs on request. Ask in chat with the flows you care about, in plain words: “signup with Google and email, checkout with a test card, upgrade from Starter to Pro, password reset.” Good moments are before a big release, after a checkout incident or when you hand a project to a new developer. Agencies often ask for it when they take over a client’s app, so they know on day one whether the core flows work.

## How the tests get written

1. **Walks the flows by hand.** In its own browser, on your test environment, Dev goes through each flow and writes down every screen, field, rule and message: what happens with a wrong password, an expired coupon, a card that is declined.
2. **Agrees the cases with you.** It lists the cases it plans to cover per flow, the happy path plus the two or three failures that cost you most, so you can add or cut before it writes anything.
3. **Writes the tests.** Cypress tests that find buttons and fields by stable labels rather than by fragile page structure, create their own test users, and clean up after themselves. Each test stands alone and can run in any order.
4. **Controls the outside world.** Slow or unpredictable outside services, such as analytics, the chat widget or an address lookup, are faked inside the test. Your own app, your database and your payment provider’s test mode stay real, because that is what you need to know works.
5. **Proves stability.** Every test runs 20 times in a row. Anything that fails once is investigated: usually a step that moved on before the page was ready. Dev fixes the wait, not the symptom.
6. **Checks real browsers.** It runs the flows on Safari, Firefox and a real iPhone and Android device in BrowserStack. Date pickers, sticky headers and payment forms are where browsers differ most.
7. **Wires them into the pipeline.** In a GitLab merge request it adds the tests and a pipeline job that runs them on every merge request, with results recorded in Cypress Cloud.

When Dev finds a real bug on the way, such as a coupon that applies twice, it does not quietly write a test around it. It reports the bug and writes the test to expect the correct behavior.

## What each app does here

- **Cypress Cloud** records every run with its results, timings and history, which is how you and Dev spot a test that starts to slow down or fail now and then.
- **GitLab** holds the code and the pipeline. The tests arrive as a normal merge request, so your team reviews them like any other change.
- **BrowserStack** gives Dev real browsers and devices to run the flows on, so “works on my laptop” stops being the standard for Safari on an iPhone.

## The finished pack

A merge request with the tests, the pipeline job and a description that lists every case covered, in plain language: “Checkout: pays with a test card, shows the order confirmation, sends the receipt. Declined card shows the right message and keeps the cart. Expired coupon is refused.” You also get a short note on the bugs found, the stability results (for example, 17 tests, 20 runs each, no failures) and how long the suite takes, typically a few minutes. Every run ends with a report of what Dev did and the credits it used.

## What Dev does freely, and what waits

Walking flows on your test environment, writing tests and running them on Dev’s own computer and in BrowserStack start straight away. Pushing a branch, opening the merge request and changing the pipeline happen in GitLab, so Dev asks first. If a test needs a small change to your app, such as a label on a button, that goes in the same merge request for review. Once you trust the pattern, you can let Dev push test branches on its own or set the chat to “Don’t ask”, and it still stays inside your plan, credit cap per run and working hours.

## The days it saves

Writing stable end-to-end tests for four core flows typically takes a developer two to four days, most of it spent chasing the tests that pass on the third try. With Dev, your part is usually an hour: agreeing the cases, reviewing the merge request and reading the bug notes. The ongoing saving is bigger and harder to count: the broken checkout that never reaches customers. These are estimates; an app with a complex login or many third-party steps takes longer.

## Getting started

1. Connect Cypress Cloud, GitLab and BrowserStack, and give Dev the address of your test environment.
2. Save a test admin login if needed, and confirm test mode is on for your payment provider there.
3. List the flows that make you money and any rules that matter, such as “never test against production”.
4. Review the cases Dev proposes, then the merge request, and merge when you are happy.

## After the first suite

- **Add a flow per release.** When you ship a new feature, ask Dev to add its test in the same week.
- **Pair with the morning review.** When Dev reviews merge requests, it reads these test results first and calls out anything that touches a money path.
- **Find flaky leftovers.** Ask Dev once a month to read the Cypress history and fix any test whose pass rate has dropped.

---

Source: https://prosyo.com/ai-agents/use-cases/dev-end-to-end-tests/ · Prosyo
