All articles
4 min readKasper Andersen

Umto's end-to-end tests, mapped as a product

Before the Playwright suite had a test in it, it was an idea. Mapping it in Umto turned that idea into four promises, the rules that keep them, and what the suite covers today.

Umto's end-to-end suite as a model: four promises, the nine rules that keep them connected by labelled arrows, and bars for the 68 tests per area.

The Jira epic for Umto's end-to-end tests said one thing: “E2E foundation for the solution.” That is a direction, not a product. What made it something I could build was mapping it in Umto, the same way I would map any product: what it promises the people who rely on it, what keeps each promise, and what it covers.

That process is the reason to do it in a model. A vision in my head stays vague; a vision on a canvas has to name its parts, and every part gets a document where the detail has to hold up. Here the product happened to be a test suite for Umto itself.

The picture at the top is that map, drawn again from today's code: four promises on the left, the rules that keep them in the middle, and the tests per area on the right, drawn as bars. A second model in the same project draws the suite's architecture: what runs where, and what passes between the parts.

The architecture of Umto's end-to-end suite: the Playwright runner, fixtures, API client and page objects in e2e/, one Chromium context per person, the Next.js app, the Rust API with its REST, websocket and share endpoints, and MongoDB and Redis as cylinders.
The architecture: tests arrange data through the public API and act through page objects in a real browser. Only the editor in that browser talks to the websocket; no test does.

Four promises

  • A green run means Umto works. Every test drives the real stack, browser to API to database, with nothing mocked. A small smoke run checks the basics first.
  • Any test runs alone and in parallel. Each test gets fresh accounts of its own, sets up its data through the public API, and names everything uniquely, so nothing is shared and nothing needs cleaning up.
  • Tests read like someone using Umto. They talk to the UI through composed page objects that find things by role and label, the way a person or a screen reader does.
  • A flaky test fails loudly. No sleeps, no retries. A test that only passes on its second try counts as failing.

Each promise points at the rules that keep it, and each rule's document has the paths, the reasoning and an example. The rules came from the promises, not the other way round.

The end-to-end suite model with one rule's document open: set up data through the public API, else through the UI, with a code example and why the websocket is never scripted.
One rule opened: set up through the public API, else through the UI, and why the suite never scripts the editor's websocket.

What it covers

68 tests in seven areas when this was written: presentations, models and the canvas, projects and folders, collaboration between two live browsers, teams, sign-in and accounts, and share links. Four of them are smoke tests. Each bar's document lists its tests by name, which says more than the file tree does.

Keeping it current

The rules themselves live in the repository, next to the tests. The model is the picture of them, and of why they exist. When the suite changes, an agent re-reads e2e/ and updates the counts and documents in place; the promises at the left rarely move.

Model something of your own.

Free for one person. Your agent can join from the first minute.