mirror of
https://github.com/sol1/rustguac.git
synced 2026-10-27 05:57:06 +00:00
4ae28efec0
A browser test harness under tests/e2e: serve.mjs serves the real static tree over HTTP and lib/api.mjs answers /api/* from a small fixture address book, recording every request the page makes, so the shipped pages run against data the test controls without Vault, guacd or a session. CI gains an e2e job that installs Chromium and runs the suite. The first spec pins #252: at 1710px the connections, recordings and reports tables fit inside the viewport and nothing scrolls sideways.
14 lines
330 B
JSON
14 lines
330 B
JSON
{
|
|
"name": "rustguac-e2e",
|
|
"private": true,
|
|
"description": "Playwright end-to-end tests for the rustguac pages, run against the static tree with a stubbed API.",
|
|
"type": "module",
|
|
"scripts": {
|
|
"test": "playwright test",
|
|
"serve": "node serve.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "1.58.2"
|
|
}
|
|
}
|