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)
This commit is contained in:
1 parent
f2440d4fd7
commit
a252d48add
1 file changed
+2
-1
@@ -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 });
|
||||
|
||||
Reference in new issue
Block a user