Skip to content

Move Playwright test isolation into Playwright#497

Merged
mtlynch merged 5 commits intomasterfrom
playwright-isolation
May 3, 2026
Merged

Move Playwright test isolation into Playwright#497
mtlynch merged 5 commits intomasterfrom
playwright-isolation

Conversation

@mtlynch
Copy link
Copy Markdown
Owner

@mtlynch mtlynch commented May 3, 2026

Previously, we had a mechanism in the debug built of the app to load per-request databases. This pulls this behavior out of the app and makes test isolation Playwright's job instead.

When we got to #481, there was just too much complexity to the per-request DB and it was making request handling for auth too complicated. It's simpler if we don't have to bend the app to satisfy the test isolation goal.

This implementation starts one dev server per Playwright worker and restarts it with a fresh SQLite database for each test so e2e isolation no longer depends on app-level per-session DB routing.

Start one dev server per Playwright worker and restart it with a fresh SQLite database for each test so e2e isolation no longer depends on app-level per-session DB routing.
@mtlynch mtlynch changed the title Move Playwright test isolation into worker fixtures Move Playwright test isolation into Playwright May 3, 2026
mtlynch added 4 commits May 3, 2026 00:16
Use the server's store and authenticator fields directly now that request-scoped database selection is gone, and delete the dead getDB/getAuthenticator helpers.
@mtlynch mtlynch merged commit 1064faf into master May 3, 2026
9 checks passed
@mtlynch mtlynch deleted the playwright-isolation branch May 3, 2026 00:33
@github-actions github-actions Bot locked and limited conversation to collaborators May 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant