feedback4: real.e2e confirms the leftover-funds prompt on ready; DESIGN's §23.f4 references point to §23.23; the 0.1.3 changelog names the 不屈 source and fixes 手牌

This commit is contained in:
sganggs committed 2026-10-05 14:03:32 +08:00
1 parent a0a5419eb8
commit 8aa41d9c1c
4 files changed
+14 -7

No files matched your search

+7
View File
@@ -413,6 +413,13 @@ class Client {
async ready() {
if (!(await this.isEditable())) return;
await this.click('.readybtn');
// 准备 with funds left asks first (剩余资金, DESIGN §23.11): confirm it, as a player who means to start the fight does
await sleep(250);
const asked = await this.page.evaluate(() => {
const t = document.querySelector('.modal__title');
return !!(t && t.textContent.includes('剩余资金'));
});
if (asked) await this.click('.modal__actions button', '准备就绪', { timeout: 4000 });
await this.waitFor((s) => s.ready || s.phase !== 'PREP', 'ready', 8000);
}
}