SSR E2E Strategy (No-Browser)
This playbook verifies core UX via server responses and HTML assertions without installing browsers.
- Health:
curl -fsS http://0rk.de:55669/health | grep healthy - Playlists SSR:
curl -fsS http://0rk.de:55667/playlists | grep -E "data:\\{type:\\"data\\",data:\\{playlists" - Library SSR:
curl -fsS http://0rk.de:55667/ | grep -E "__sveltekit_" - Rating API:
curl -fsS -X POST -H 'Content-Type: application/json' \\ 'http://0rk.de:55669/api/rating' -d '{"track_id":24,"rating":5}' | grep success
Recommended CI steps:
- Smoke API:
bash tests/api_smoke.sh - SSR checks: curl the pages above and assert expected markers
Notes:
- These tests avoid Playwright browser dependencies.
- For full E2E, enable Playwright once browsers are installed (
npx playwright install).