diff --git a/e2e/bots.e2e.ts b/e2e/bots.e2e.ts index 66c0415..5e1a8fc 100644 --- a/e2e/bots.e2e.ts +++ b/e2e/bots.e2e.ts @@ -69,6 +69,8 @@ async function clickCell(p: Page, x: number, y: number) { try { const pc = await browser.newContext({ viewport: { width: 1440, height: 900 }, locale: 'ko-KR' }); const phone = await browser.newContext({ viewport: { width: 390, height: 844 }, deviceScaleFactor: 2, isMobile: true, hasTouch: true, locale: 'ko-KR' }); + // The first-game "30초 규칙 요약" cards are tested in e2e/tutorial.e2e.ts; mark them seen here. + for (const ctx of [pc, phone]) await ctx.addInitScript(() => { for (const g of ['omok', 'one-card']) localStorage.setItem(`bg:qs:${g}`, '1'); }); const a = await pc.newPage(); const b = await phone.newPage(); const errors: string[] = []; diff --git a/e2e/replay.e2e.ts b/e2e/replay.e2e.ts index d9b4b83..a31359e 100644 --- a/e2e/replay.e2e.ts +++ b/e2e/replay.e2e.ts @@ -74,6 +74,8 @@ const hand = (p: Page) => try { const ctxA = await browser.newContext({ viewport: { width: 1440, height: 900 }, locale: 'ko-KR' }); const ctxB = await browser.newContext({ viewport: { width: 390, height: 844 }, deviceScaleFactor: 2, isMobile: true, hasTouch: true, locale: 'ko-KR' }); + // The first-game "30초 규칙 요약" cards are tested in e2e/tutorial.e2e.ts; mark them seen here. + for (const ctx of [ctxA, ctxB]) await ctx.addInitScript(() => { for (const g of ['omok', 'one-card', 'seotda']) localStorage.setItem(`bg:qs:${g}`, '1'); }); const a = await ctxA.newPage(); const b = await ctxB.newPage(); const errors: string[] = [];