From c5925a76fad6a78ab5c64e1789a6de5564f029ab Mon Sep 17 00:00:00 2001 From: sganggs Date: Tue, 13 Oct 2026 00:19:44 +0800 Subject: [PATCH] =?UTF-8?q?0.2.6-dev:=20the=20emote=20fallback=20browser?= =?UTF-8?q?=20test=20blocks=20the=20mirror=20copies=20under=20their=20cont?= =?UTF-8?q?ent-hashed=20URLs=20too=20(/assets/~/ui/emoticon/?= =?UTF-8?q?=E2=80=A6,=20host=20bandwidth=20layer=201);=20golden:=20unchang?= =?UTF-8?q?ed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/ui/emotes.e2e.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/ui/emotes.e2e.test.js b/test/ui/emotes.e2e.test.js index 4b09112a..a8c8276b 100644 --- a/test/ui/emotes.e2e.test.js +++ b/test/ui/emotes.e2e.test.js @@ -299,8 +299,9 @@ describe('official emotes in the browser', { skip: !ENABLED && 'set SP_E2E=1 (an // neither the local-client art nor the copies setup downloads (GitHub #42) load: the glyph is the last link const { page, problems } = await open('/dev/uikit.html', { manifest: { version: 1, groups: { 'emoticon/basic': { pic_happy_battle: { path: '/assets/local/emoticon/basic/nope_404.png', w: 120, h: 120 } } } }, - block: /\/assets\/ui\/emoticon\//, - ignore: [/nope_404\.png/, /\/assets\/ui\/emoticon\//, /Failed to load resource/], + // the served manifest's URLs may carry a content-hash segment (/assets/~/ui/…, 0.2.6 host bandwidth layer 1) + block: /\/assets\/(?:~[0-9a-f]{16}\/)?ui\/emoticon\//, + ignore: [/nope_404\.png/, /\/assets\/(?:~[0-9a-f]{16}\/)?ui\/emoticon\//, /Failed to load resource/], }); await page.evaluate(() => localStorage.removeItem('sp.pref.emoteTheme')); await page.reload({ waitUntil: 'networkidle0' });