test: add end-to-end browser tests with Playwright

Set up tests/e2e/ with a login page test covering branding, accessibility,
form structure, theme colors, and static asset serving. Includes run.sh
that manages the app lifecycle (start, test, stop) automatically.
This commit is contained in:
Johan Lundberg 2026-02-16 12:22:58 +01:00
parent 84e61464c7
commit e8fd7eb01d
No known key found for this signature in database
GPG key ID: A6C152738D03C7D1
4 changed files with 236 additions and 0 deletions

12
tests/e2e/package.json Normal file
View file

@ -0,0 +1,12 @@
{
"private": true,
"name": "porchlight-e2e",
"description": "End-to-end browser tests for Porchlight",
"scripts": {
"test": "./run.sh",
"setup": "npx playwright install chromium"
},
"dependencies": {
"playwright": "^1.52.0"
}
}