e2e: 섯다에서 두 사람이 다이하면 남은 사람이 [카드 공개]를 고르고 모두에게 패가 보이는지(seotdaFold)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-14 04:33:24 +09:00
parent ddd7d72050
commit 1f0b52685e

View File

@@ -1554,6 +1554,28 @@ const PLANS: Record<string, Plan> = {
await pages[1]!.screenshot({ path: join(SHOTS, 'seotda3-result-phone.png'), fullPage: true });
},
},
seotdaFold: {
// 2026-10-14: the first actor bets 하프, the other two 다이 → the one left chooses [카드 공개]; everyone then sees
// the cards and "패를 공개했어요" in the result.
game: 'seotda',
players: 3,
drive: async (pages) => {
await pressActions(pages, /^하프/, 1);
await pressActions(pages, /^다이/, 2);
let winner: Page | null = null;
for (let t = 0; t < 50 && !winner; t++) {
for (const p of pages) if (await p.getByRole('group', { name: '카드 공개' }).count()) winner = p;
if (!winner) await pages[0]!.waitForTimeout(100);
}
if (!winner) throw new Error('nobody was asked to show the cards');
for (const p of pages) if (p !== winner) await p.getByText(/카드 공개 여부를 고르는 중이에요/).first().waitFor({ timeout: 5000 });
await winner.screenshot({ path: join(SHOTS, 'seotda-fold-reveal-ask.png') });
await winner.getByRole('button', { name: '카드 공개', exact: true }).click();
for (const p of pages) await p.getByText(/패를 공개했어요/).first().waitFor({ timeout: 10_000 });
await pages[0]!.waitForTimeout(1500); // the flip
await pages.find((p) => p !== winner)!.screenshot({ path: join(SHOTS, 'seotda-fold-revealed-other.png') });
},
},
poker: {
// 3 players, default 7포커: 초이스 (discard 1st card, open 2nd), then everyone checks 4 streets → showdown.
players: 3,