mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-03 12:02:29 +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+).
88 lines
2.5 KiB
JSON
88 lines
2.5 KiB
JSON
{
|
|
"name": "xc_vm-e2e",
|
|
"version": "1.0.0",
|
|
"lockfileVersion": 3,
|
|
"requires": true,
|
|
"packages": {
|
|
"": {
|
|
"name": "xc_vm-e2e",
|
|
"version": "1.0.0",
|
|
"devDependencies": {
|
|
"@playwright/test": "~1.49.1",
|
|
"dotenv": "^16.4.5"
|
|
}
|
|
},
|
|
"node_modules/@playwright/test": {
|
|
"version": "1.49.1",
|
|
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.49.1.tgz",
|
|
"integrity": "sha512-Ky+BVzPz8pL6PQxHqNRW1k3mIyv933LML7HktS8uik0bUXNCdPhoS/kLihiO1tMf/egaJb4IutXd7UywvXEW+g==",
|
|
"dev": true,
|
|
"dependencies": {
|
|
"playwright": "1.49.1"
|
|
},
|
|
"bin": {
|
|
"playwright": "cli.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
}
|
|
},
|
|
"node_modules/dotenv": {
|
|
"version": "16.6.1",
|
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
|
|
"integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
|
|
"dev": true,
|
|
"engines": {
|
|
"node": ">=12"
|
|
},
|
|
"funding": {
|
|
"url": "https://dotenvx.com"
|
|
}
|
|
},
|
|
"node_modules/fsevents": {
|
|
"version": "2.3.2",
|
|
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
|
|
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
|
|
"dev": true,
|
|
"hasInstallScript": true,
|
|
"optional": true,
|
|
"os": [
|
|
"darwin"
|
|
],
|
|
"engines": {
|
|
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
|
}
|
|
},
|
|
"node_modules/playwright": {
|
|
"version": "1.49.1",
|
|
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.49.1.tgz",
|
|
"integrity": "sha512-VYL8zLoNTBxVOrJBbDuRgDWa3i+mfQgDTrL8Ah9QXZ7ax4Dsj0MSq5bYgytRnDVVe+njoKnfsYkH3HzqVj5UZA==",
|
|
"dev": true,
|
|
"dependencies": {
|
|
"playwright-core": "1.49.1"
|
|
},
|
|
"bin": {
|
|
"playwright": "cli.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"optionalDependencies": {
|
|
"fsevents": "2.3.2"
|
|
}
|
|
},
|
|
"node_modules/playwright-core": {
|
|
"version": "1.49.1",
|
|
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.49.1.tgz",
|
|
"integrity": "sha512-BzmpVcs4kE2CH15rWfzpjzVGhWERJfmnXmniSyKeRZUs9Ws65m+RGIi7mjJK/euCegfn3i7jvqWeWyHe9y3Vgg==",
|
|
"dev": true,
|
|
"bin": {
|
|
"playwright-core": "cli.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
}
|
|
}
|
|
}
|
|
}
|