test(e2e): media suite (Media page batch upload, product photos, waiter offline photos); docs

- media.mjs: batch upload through the Media page (the owner's ITEM PHOTOS
  folders when present: 49 files incl. AVIF, all in), details and rename, a
  product's photo from the library and one uploaded on the spot named after
  the product, a used photo can't be deleted, the waiter fetches the photos
  ahead and shows them offline. In run-all.
- startBackend gives each test backend its own XENIA_MEDIA_DIR.
- pack README: the media row (usage registration, `image`, MediaField, offline).
- run-all --no-android: every suite passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 15:57:51 +02:00
co-authored by Claude Opus 5.5
parent 15bd0f5b57
commit 87dff573df
4 changed files with 202 additions and 2 deletions
+3 -1
View File
@@ -72,7 +72,9 @@ export async function startBackend({ port = 8055, siteId = 'test-site-1', siteKe
SITE_ID: siteId, SITE_KEY: siteKey, CLOUD_URL: cloudUrl, SECRET_KEY: 'e2e-secret',
// No cloud = a test backend: licensing off (every module). The license suite passes a cloudUrl.
LICENSE_MODE: cloudUrl ? 'enforced' : 'off',
SUPPORT_SECRET: siteSecret(SUPPORT_MASTER, siteId), ...env,
SUPPORT_SECRET: siteSecret(SUPPORT_MASTER, siteId),
// the media library's files stay in this backend's own data folder (not /app/data)
XENIA_MEDIA_DIR: path.join(dataDir, 'media'), ...env,
},
})
const url = `http://127.0.0.1:${port}`