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.
Chapters
Transcript
0:00With smol machines, every e2e test attempt runs in its own branch of a warm, signed-in Chromium machine.
0:08smol machines is a browser provider for TesterArmy's open-source testing framework, e2e.
0:15Install two packages, and set the web target's browser to smol.
0:20A prepare step drives the browser once, through your real login page.
0:27Each 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:40A 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:52When 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:02Move 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:16It runs on your own Mac or Linux machine, with no account. The links are below.