E2E from Zero to 700+ TCs
Replaced a near-broken E2E setup blocked by backend dependencies with a mock-first Cypress framework. Delivered 700+ test cases fast, integrated in CI, and introduced production transaction monitoring.
The Problem
Before
- Many backend dependencies from Akamai and other teams
- Test accounts frequently blocked
- Very difficult to request or provision new test users
- Automation was effectively abandoned
- Full focus on slow, expensive manual testing
- Low confidence in releases
After
- Zero backend dependencies for frontend tests
- 700+ test cases covering all business logic
- Full control over every scenario via mock server
- All tests run in CI pipeline on every PR
- Production monitored with Uptrends transactions
- Contract tests keep mocks in sync with the real API
The Insight
"We are responsible for the Frontend only. So let's test the Frontend in isolation — with a mock server we control every scenario, every edge case, every state. No blocked accounts, no flaky dependencies. Just fast, reliable tests."
Solution Architecture
Mock Server
A centralized mock server that returns pre-configured responses for every API endpoint. Before each test, the scenario is selected — no products, one product, out of stock, pagination edge cases — full control.
Cypress Framework
700+ test cases built fast. Tests verify both what the UI renders based on the mock response and what POST requests it sends to the server. Stable, fast, and maintainable.
Contract Testing
When the real API changes, a contract test fails and signals that the mocks need updating. The test suite stays in sync with production without any manual maintenance.
Production Monitoring
Uptrends transaction monitoring runs the most critical user flows on production every 15 minutes. The whole team is alerted immediately if something breaks in prod.
Impact
Want to bring this kind of setup to your team?
Let's Talk