feedback4: the real-browser e2e suites confirm the leftover-funds prompt on the Space path too (coop.e2e 4/4, real.e2e 2/2)

This commit is contained in:
sganggs committed 2026-10-05 14:28:47 +08:00
1 parent 8aa41d9c1c
commit bcd916eb61
2 files changed
+9 -4

No files matched your search

+2 -1
View File
@@ -600,7 +600,8 @@ async function ready(c, { key = false } = {}) {
if (!(await c.isEditable())) return;
const s = await c.st();
if (!s.canReady) { c.note(`temp not empty (${s.temp}) — ready blocked`); return; }
if (key) { await c.page.mouse.click(c.w / 2, c.h * 0.3); await c.page.keyboard.press('Space'); } else await c.click('.readybtn');
// Space asks about leftover funds like the button does (剩余资金, DESIGN §23.11); the button path confirms inside c.click
if (key) { await c.page.mouse.click(c.w / 2, c.h * 0.3); await c.page.keyboard.press('Space'); await c.confirmFundsLeft(); } else await c.click('.readybtn');
await c.waitFor((x) => x.ready || x.phase !== 'PREP', 'ready', 8000);
}