Add the optional Playwright web UI smoke test

This commit is contained in:
Fisto
2026-09-17 08:18:30 +02:00
parent 5319a028e2
commit f5f3196382
5 changed files with 180 additions and 0 deletions
+8
View File
@@ -119,4 +119,12 @@ pnpm lint
cd poc
pnpm check # type check the daemon
pnpm test:comm # unit tests
pnpm test:ui # optional browser smoke test for the Media tab
```
`pnpm test:ui` is optional. It needs a running daemon with media data and a Chromium: set
`PW_CHROMIUM` to a binary, or keep one in the Playwright cache (`~/.cache/ms-playwright`).
`playwright-core` is an optional dependency, so a missing browser never blocks the other tests.
`VESKSLOP_UI_URL` overrides the default `https://127.0.0.1:8789/`. It opens the Media tab, loads
tiles, applies the cached-only filter, checks the zoom slider and Reset, and fails on console
errors or broken images. See [docs/testing.md](docs/testing.md).