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 });