From 909abee0b8b7bc396190d54c34a50a6bb0c8f538 Mon Sep 17 00:00:00 2001 From: sganggs Date: Mon, 12 Oct 2026 21:19:41 +0800 Subject: [PATCH] 0.2.6-dev: the loadout module-card browser test accepts the content-hash segment the served manifest now puts in local-art URLs (host bandwidth layer 1); golden: unchanged --- test/ui/loadout.e2e.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ui/loadout.e2e.test.js b/test/ui/loadout.e2e.test.js index 4736b5fb..9cc9195a 100644 --- a/test/ui/loadout.e2e.test.js +++ b/test/ui/loadout.e2e.test.js @@ -367,7 +367,8 @@ describe('干员调配 overlay (real server, headless Chrome)', { skip: !ENABLED }))); assert.deepEqual(tiles.map((t) => t.type).sort(), ['PRI-X', 'PRI-Y']); if (localModuleIcons()) { - for (const t of tiles) assert.match(t.src || '', new RegExp(`^/assets/local/module/${t.type}\\.png$`, 'i'), JSON.stringify(t)); + // the served manifest carries the file's content hash as the first segment (0.2.6, host bandwidth layer 1) + for (const t of tiles) assert.match(t.src || '', new RegExp(`^/assets/(?:~[0-9a-f]{16}/)?local/module/${t.type}\\.png$`, 'i'), JSON.stringify(t)); assert.ok(await page.$('.lo-minfo__title .lo-minfo__icon'), 'the selected module\'s info shows its icon too'); } else { for (const t of tiles) assert.equal(t.letter, t.type.slice(-1), JSON.stringify(t));