test(e2e): display looks (two displays, two slideshows; looks UI with library pictures); docs

- terminal.mjs: the looks API drives the idle screen; a second look on the
  other display: two displays show two different slideshows from the library.
- manager.mjs: the default look's QR design through Settings.
- media.mjs: a new look with three pictures picked at once, a picture in a look
  can't be deleted.
- pack README: the customer display row; CS-19 (screen designs are records a
  device picks with a ref field).
- run-all --no-android: all passed except terminal's "server unreachable →
  banner" (8 s wait, under load); terminal.mjs alone right after: all passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 17:50:52 +02:00
co-authored by Claude Opus 5.5
parent 6d84e43330
commit 51b764fe7e
4 changed files with 54 additions and 15 deletions
+2 -2
View File
@@ -614,10 +614,10 @@ try {
await page.getByTestId('display-save').click()
let idleCfg = null
for (let i = 0; i < 30 && idleCfg?.style !== 'qr'; i++) {
idleCfg = (await api('GET', '/api/display/settings', { token: boss })).idle
idleCfg = (await api('GET', '/api/display/looks', { token: boss })).find(l => l.is_default)?.config
if (idleCfg?.style !== 'qr') await sleep(100)
}
r.check('settings: customer display → a QR code to the online ordering, with a caption', idleCfg?.style === 'qr'
r.check('settings: customer display → the default look: a QR code to the online ordering, with a caption', idleCfg?.style === 'qr'
&& idleCfg.qr_target === 'ordering' && idleCfg.qr_caption === 'Order online', JSON.stringify(idleCfg))
await page.screenshot({ path: path.join(OUT, 'manager-display-settings.png'), fullPage: true })