10a4a3e8

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Handle playwright isolation in playwright (#49)

Previously, the app had a special per-request database-picking logic for e2e tests. That way, in a special e2e mode, the app could check a special e2e-only cookie and switch databases depending on the cookie.

This made tests faster, but it also pushed complexity into the app that's been growing.

Instead, we're going to switch the test isolation logic to playwright where it belongs, so playwright starts multiple workers, each with a distinct SQLite database path, and we get isolation that way.

Reviewed-on: https://codeberg.org/mtlynch/go-app-starter/pulls/49

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 1s
Eval 2s 44s 44s 46s
Build 4s 1m03s 18s 22s
Test - - - -
Deploy - - - -
Suite 0s 1m49s 46s 46s

Timeline

0s10s20s30s40s