mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-04 20:03:11 +02:00
Add a browser E2E project under tests/e2e/ that runs against a live panel (there is no built-in server). Verified green (7/7) against a canary instance. - playwright.config.ts: loads tests/e2e/.env (dotenv); a `setup` project logs in once (auth.setup.ts — form #username/#password/#login_button -> ./login) and stores the session, the chromium project reuses it via storageState. baseURL is normalized to a trailing slash so relative gotos keep the access-code segment. - Smoke specs: shell renders (sidebar/navbar, server-stamped data-bs-theme); Dashboard group + Home link; six stat tiles + a live ./api?action=stats 200; charts + server selector; customizer theme change persists across reload and reset (opening the customizer panel) clears it. - Config via env: XC_E2E_BASE_URL (admin base incl. access code), XC_E2E_USER, XC_E2E_PASS (see .env.example / README). Makefile: `make e2e` / `e2e-ui` / `e2e-install`. node_modules/.auth/results/.env gitignored; @playwright/test pinned ~1.49 (Node 18+).
7 lines
67 B
Plaintext
7 lines
67 B
Plaintext
node_modules/
|
|
.auth/
|
|
test-results/
|
|
playwright-report/
|
|
.env
|
|
run.log
|