Add Playwright e2e test suite

This commit is contained in:
2026-03-06 21:08:20 -05:00
parent 8b1fff4130
commit 7dd403e814
8 changed files with 304 additions and 0 deletions

View File

@@ -37,6 +37,29 @@ bun run build
bun run start
```
## Browser E2E tests
Install Playwright's Chromium browser once:
```bash
bun run test:e2e:install
```
Run the suite:
```bash
bun run test:e2e
```
Useful variants:
```bash
bun run test:e2e:headed
bun run test:e2e:ui
```
The Playwright web server boot path uses an isolated SQLite database at `data/e2e.sqlite`, forces local Better Auth origins for the test port, and stores artifacts under `output/playwright/`.
## Docker deployment
```bash