From a252d48addf9d6c81a01b38ae47b7b494b7e1a2c Mon Sep 17 00:00:00 2001 From: sganggs Date: Mon, 5 Oct 2026 19:02:31 +0800 Subject: [PATCH] feedback4: the mock scouting-pen test expects the 'prep' camera on the way back from a teammate's pen (PR #129 frames a scouted prep board like the own prep) --- test/ui/mock.e2e.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ui/mock.e2e.test.js b/test/ui/mock.e2e.test.js index 5adec9b0..ed87113e 100644 --- a/test/ui/mock.e2e.test.js +++ b/test/ui/mock.e2e.test.js @@ -526,7 +526,8 @@ describe('in-match UI (mock harness, headless Chrome)', { skip: !ENABLED && 'set assert.deepEqual([...new Set(shown.map((x) => x[0]))].sort(), [...new Set(theirs.map((e) => e.enemyKey))].sort()); if (render === 'engine') assert.ok(shown.every((x) => x[1] >= 17), 'their upper-gate enemies stand in rows 17–18'); await page.click('.gtop__iconbtn'); - await page.waitForFunction(() => document.querySelector('.gm')?.dataset.camera === 'normal', { timeout: 3000 }); + // a scouted prep board frames like the own prep with the shop folded (PR #129), so the pen returns to 'prep' + await page.waitForFunction(() => document.querySelector('.gm')?.dataset.camera === 'prep', { timeout: 3000 }); assert.ok(await page.$('.gm__watching'), 'still scouting the teammate'); await page.click('.gm__watching button'); await page.waitForFunction(() => document.querySelector('.gm')?.dataset.camera === 'prep', { timeout: 3000 });