Skip to content
nexovia

Quality and delivery

End-to-end testing

End-to-end testing checks the product the way a user does: sign up, pay, book, export. We write these tests with Playwright for web applications and run device tests for mobile apps, against an environment with known test data. A flaky test is fixed or removed, because a suite that fails at random stops being read.

End-to-end testing: an overview

An end-to-end test drives the real application: a browser opens the page, fills in the form, pays with a test card in the payment provider's test mode and checks the confirmation screen. It is the kind of test closest to a real user, and also the slowest and the most fragile. Good end-to-end testing services come down to two things: choosing the few flows that deserve that cost, and writing those tests so they stay stable.

For web applications we use Playwright. One test can run in Chromium, Firefox and WebKit, the engine behind Safari. Playwright waits on its own until an element is ready, and it records a trace of a failed run: the page, the network calls and the console at each step. Opening that trace is usually enough to understand a failure without running the test again.

Mobile apps for iOS and Android get device tests that follow the same flows on simulators, emulators and real phones, through accessibility identifiers that the app exposes. One rule holds on both sides: each test creates the data it needs. That is what allows tests to run in parallel and in any order without stepping on each other.

What the service covers

  • Web flows with Playwright

    Tests for sign-up, login, checkout, booking or export, run in Chromium, Firefox and WebKit. Each test reads like the steps a user takes.

  • Mobile device tests

    The same critical flows on iOS and Android, on simulators and emulators in CI and on real phones before a release. Tests find elements through accessibility identifiers rather than screen positions.

  • Test data and fixtures

    Seed scripts and API helpers that give each test its own user, cart or account. No test depends on what another test left behind.

  • Test environments

    A dedicated environment, or one created per pull request, running the same Docker images as production. Payments and email run in their test mode or are replaced by fakes.

  • CI runs and reports

    The suite runs on every pull request, split across parallel workers. A failure comes with a trace, a video and a screenshot attached to the run.

  • Flakiness tracking

    Every intermittent failure is logged with its cause and its fix. A test that keeps failing at random is quarantined, then rewritten or removed.

When it is the right call

  • 01

    Your sign-up, checkout or booking flow broke in production after a release that looked harmless.

  • 02

    You have an end-to-end suite, but it fails at random and the team reruns it until it turns green.

  • 03

    Your testers spend the end of every sprint clicking through the same scenarios by hand.

  • 04

    You ship a web app and a mobile app on the same API, and both need to be checked before a release.

What you get

  • Playwright test suite for the critical web flows, across browsers

  • Device tests for iOS and Android apps

  • Test data and environments that make every run repeatable

  • Runs in CI on every pull request, with traces and screenshots on failure

How we work on it

  1. Step 1

    Pick the critical flows

    With you, we list the flows that bring revenue or would flood support if they broke. We order them by risk and start at the top.

  2. Step 2

    Prepare data and environment

    Seed scripts and API helpers create the users, products and orders each test needs, and clean them up afterward. Third-party services are switched to test mode or replaced by fakes.

  3. Step 3

    Write the suite

    Tests use role-based locators and web-first assertions, with no fixed waits. Each one is reviewed like production code.

  4. Step 4

    Run in CI

    The suite runs in parallel on every pull request and blocks the merge when it fails. Traces, videos and screenshots are kept for each failed run.

  5. Step 5

    Hunt down flakiness

    Every random failure is investigated and its cause written down. The test is then fixed, moved to a lower level or removed.

Writing Playwright tests that survive a redesign

Most fragile end-to-end tests target CSS classes or long XPath expressions that change whenever a designer moves a button. We locate elements by role and accessible name, the way a screen reader sees them: the button named Pay, the field labeled Email. Those names change only when the product changes, and relying on them also checks that the page is accessible.

There are no fixed waits in our tests. Playwright's auto-waiting and web-first assertions retry until an element is visible, enabled and stable, or until a timeout expires. When a test has to wait for something specific, it waits for that exact thing: a network response, a message, a new URL. Each test runs in its own browser context, and as the suite grows it is split into shards across several CI machines.

Device tests for iOS and Android apps

Mobile end-to-end tests are slower and harder to keep stable than web ones, so we keep fewer of them. They cover installation, login, the main flow and whatever touches the device: push notifications, camera permission, deep links, offline mode. The app exposes stable accessibility identifiers for the tests to find, which also helps people who use VoiceOver or TalkBack.

In CI the tests run on simulators and emulators. Before a release they also run on a set of real devices, because some problems only show on real hardware: a keyboard that covers a field, a small screen, an older Android version. Screens in Hebrew are checked in right-to-left mode on both platforms.

Isolated test data makes end-to-end runs repeatable

Unstable suites usually share data. One test changes the password of the shared test user, and another fails later for no visible reason. We give each test its own data: a fresh account created through the API before the test starts, a product with a unique name, an order that belongs to nobody else. Creating that data through the API rather than the interface also keeps tests short, since only the flow under test goes through the browser.

The environment needs the same care. Payments run in the provider's test mode, emails go to a capture inbox the test can read, and features that depend on dates use a clock the test controls. When each pull request gets its own preview environment with a fresh database, the suite runs there without colliding with another branch.

Tools and methods

  • Playwright
  • k6
  • Test pyramid
  • Contract testing
  • GitHub Actions
  • Lighthouse
  • axe-core
  • Sentry

How you can work with us

  • Fixed-scope project

    The scope of the first version is written down, split into milestones and priced per milestone. It suits a product or a feature with a clear outline.

  • Dedicated team

    A team works on your product over the long run, with its own planning and release cadence. It suits a product that keeps changing.

  • Team extension

    One or more of our engineers join your team and work with your tools and routines. It suits a company that knows where it is going but lacks people or a specific skill.

  • Monthly support

    A monthly retainer covers maintenance, updates and small changes, with an agreed response time. It suits a product in production that needs upkeep more than new features.

Questions about End-to-end testing

How many end-to-end tests does a product need?

Fewer than most teams expect. One test per critical flow, plus the error cases that matter, is a good start, and the rest of the behavior is cheaper to cover with unit and integration tests. The count should grow with the flows your business depends on, not with the number of screens.

Playwright or Cypress: which one should we use?

For a new suite, Playwright has the edge when you need Chromium, Firefox and WebKit from the same test, several tabs and domains in one test, or parallel runs built in. If you already have a healthy Cypress suite, we keep it and extend it, because migrating tests that work is rarely worth the effort. The decision comes down to the cost of change for your team.

What does it take to maintain an end-to-end suite?

The effort follows how often the interface changes and how stable the test environment is. Tests that use role-based locators and create their own data need little upkeep between redesigns. We plan time for the suite in each milestone, the same way we plan it for the code under test.

Can end-to-end tests run against production?

A small set can, as smoke tests after each deployment: open the home page, log in with a dedicated monitoring account, load the main screen. Those tests must never create real orders or send messages to real customers. The full suite belongs in a test environment, where it can create and delete data freely. Running both gives you confidence before a release and a quick signal right after it.

Do end-to-end tests work with a Hebrew, right-to-left interface?

Yes. Role-based locators work with Hebrew accessible names, so a test finds a button labeled in Hebrew the same way it finds one in English. We run the suite in each language the product supports, because translated labels, mirrored layouts and longer texts break different things. Screenshots taken on failure show the layout as the user sees it, which makes direction problems easy to spot.

Who maintains the tests once the project is over?

Your team, if you want it to. The suite sits in your repository, follows written conventions and comes with an example of each kind of test. We pair with your developers on their first new tests and review their pull requests at the start. If you prefer, we keep maintaining the suite as part of a maintenance contract.

In the same service area

Design, build and ship your project

Describe it in three lines. We reply with specific questions and a first take on how to proceed.