diff --git a/e2e/games.e2e.ts b/e2e/games.e2e.ts index 9f9cb94..6249209 100644 --- a/e2e/games.e2e.ts +++ b/e2e/games.e2e.ts @@ -1554,6 +1554,28 @@ const PLANS: Record = { 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,