# e2e tests in signed-in browser branches with smol machines

> With smol machines as a browser provider for the open-source testing framework e2e, every test attempt runs in its own copy-on-write branch of a warm, signed-in Chromium machine, on your own computer.

Watch: https://smolmachines.com/videos/e2e-signed-in-browser-tests (YouTube: https://www.youtube.com/watch?v=GsGUg_4g9Oo), 1:24, uploaded 2026-10-26.

## Chapters

- [0:00 The retry](https://smolmachines.com/videos/e2e-signed-in-browser-tests)
- [0:15 Setup](https://smolmachines.com/videos/e2e-signed-in-browser-tests?t=15)
- [0:27 Branches](https://smolmachines.com/videos/e2e-signed-in-browser-tests?t=27)
- [0:52 Retries](https://smolmachines.com/videos/e2e-signed-in-browser-tests?t=52)
- [1:03 App in the machine](https://smolmachines.com/videos/e2e-signed-in-browser-tests?t=63)

## Transcript

[0:00] With smol machines, every e2e test attempt runs in its own branch of a warm, signed-in Chromium machine.

[0:08] smol machines is a browser provider for TesterArmy's open-source testing framework, e2e.

[0:15] Install two packages, and set the web target's browser to smol.

[0:20] A prepare step drives the browser once, through your real login page.

[0:27] Each worker slot boots one Chromium machine and keeps it warm. Every attempt runs in a copy-on-write branch of it, and the branch is deleted after the attempt ends.

[0:40] A branch is a clone of the machine at that instant, with its memory, its running processes and its disks, so there is no need to log in again.

[0:52] When a test fails, the retry starts from the same signed-in state as the first try. Nothing the failed attempt did inside the machine will reach it.

[1:02] Move the app into the machine, and each attempt also gets its own copy of the running app and its local database. Two attempts that write the same row never see each other's writes.

[1:16] It runs on your own Mac or Linux machine, with no account. The links are below.

## Links

- [Set up e2e with smol machines](https://smolmachines.com/docs/integrations/e2e)
- [Blog post: Sign in once per worker](https://smolmachines.com/blog/signed-in-browser-tests-with-e2e)
- [e2e's smol machines page](https://e2e.com/docs/integrations/smol)
