From e5e3f05bb28bdf940ae6c2cb0b543d74df67e488 Mon Sep 17 00:00:00 2001 From: sganggs Date: Fri, 9 Oct 2026 00:07:17 +0800 Subject: [PATCH] =?UTF-8?q?feedback7:=20the=20co-op=20browser=20test=20cou?= =?UTF-8?q?nts=20an=20empty=20new=20shop=20slot=20as=20a=20chess=20slot=20?= =?UTF-8?q?(=C2=A727.52=20=E2=80=94=20the=20slot=20a=20=E8=B0=83=E5=BA=A6?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=20upgrade=20opens=20stays=20empty=20and=20sh?= =?UTF-8?q?ows=20an=20empty=20card=20until=20the=20next=20roll);=20found?= =?UTF-8?q?=20by=20the=200.2.2=20full=20pass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/e2e/coop.e2e.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/coop.e2e.mjs b/test/e2e/coop.e2e.mjs index e2eb487d..add4aead 100644 --- a/test/e2e/coop.e2e.mjs +++ b/test/e2e/coop.e2e.mjs @@ -56,7 +56,9 @@ async function checkHud(c, where) { const s = globalThis.__SP__.store.get(); const pub = s.match.public; const priv = s.match.private; const txt = (sel) => document.querySelector(sel)?.textContent?.trim() ?? null; - const shopChess = (priv?.shop?.slots || []).filter((x) => x && x.kind !== 'item').length; + // a chess slot is any slot but the item's: a slot a 调度中心 upgrade opened stays null until the next roll and shows an + // empty card (DESIGN §27.52, ui/shopBar.js chessSlots) + const shopChess = (priv?.shop?.slots || []).filter((x) => !x || x.kind !== 'item').length; return { phase: pub?.phase, round: pub?.round, lastRound: pub?.lastRound, players: (pub?.players || []).length, lp: priv?.lp, teamLp: pub?.teamLp, funds: priv?.funds, cap: priv?.deployCap, count: priv?.deployCount,