병합: wt2/g2-cards

This commit is contained in:
EJClaw
2026-10-13 13:37:59 +09:00
47 changed files with 2706 additions and 323 deletions

View File

@@ -2254,7 +2254,8 @@ const PLANS: Record<string, Plan> = {
players: 3,
lobby: async (host) => {
await host.getByRole('group', { name: '같은 벌레 몇 장이면 패배' }).getByRole('button', { name: '3장(짧게)' }).click();
await host.getByText(/같은 벌레 3장이면 패배/).first().waitFor();
await host.getByRole('group', { name: '건네기·판정 제한 시간' }).getByRole('button', { name: '무제한' }).click();
await host.getByText(/같은 벌레 3장이면 패배.*시간 무제한/).first().waitFor();
},
drive: async (pages) => {
const [host, guest] = pages as [Page, Page, Page];
@@ -2303,16 +2304,16 @@ const PLANS: Record<string, Plan> = {
},
},
'ninety-nine': {
// PC host + 2 phones, 전용 카드 with 6 of each special card and 30-second turns. Real turns through the UI until the
// PC host + 2 phones, 전용 카드 with 6 of each special card and no turn clock (무제한: no timer anywhere). Real turns through the UI until the
// game ends: joker via the number dial (quick 99, then −1), ± cards via their +/− buttons, 0 with its keep/reverse
// direction buttons, otherwise a number card (PC: keyboard Enter twice, phones: tap twice). 3 players start at 20
// with 5 cards each (official rules). Players run out of cards and are eliminated.
players: 3,
lobby: async (host) => {
await host.getByRole('group', { name: '한 턴 제한 시간' }).getByRole('button', { name: '30초' }).click();
await host.getByRole('group', { name: '한 턴 제한 시간' }).getByRole('button', { name: '무제한' }).click();
await host.getByRole('button', { name: '▼ 자세한 설정' }).click();
await host.getByRole('group', { name: '특수 카드 장수' }).getByRole('button', { name: '6장' }).click();
await host.getByText(/^전용 카드 · 손패 5장 · 목숨 없음 · 30초/).first().waitFor();
await host.getByText(/^전용 카드 · 손패 5장 · 목숨 없음 · 시간 무제한/).first().waitFor();
},
drive: async (pages) => {
const [host, guest] = pages as [Page, Page, Page];
@@ -2333,6 +2334,7 @@ const PLANS: Record<string, Plan> = {
if (!shot && turns >= 5) {
shot = true;
await host.waitForTimeout(500);
for (const p of pages) if (await p.getByRole('timer').count()) throw new Error('무제한 room still shows a turn timer');
await host.screenshot({ path: join(SHOTS, 'ninety-nine-mid-pc.png') });
await guest.screenshot({ path: join(SHOTS, 'ninety-nine-mid-phone.png') });
await guest.screenshot({ path: join(SHOTS, 'ninety-nine-mid-phone-full.png'), fullPage: true });