M9: 다시 보기·컴퓨터 상대 E2E도 30초 요약 카드를 본 것으로 처리

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-06 13:49:17 +09:00
parent c78d0fd1fc
commit 94b813c8b5
2 changed files with 4 additions and 0 deletions

View File

@@ -69,6 +69,8 @@ async function clickCell(p: Page, x: number, y: number) {
try { try {
const pc = await browser.newContext({ viewport: { width: 1440, height: 900 }, locale: 'ko-KR' }); 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' }); 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 a = await pc.newPage();
const b = await phone.newPage(); const b = await phone.newPage();
const errors: string[] = []; const errors: string[] = [];

View File

@@ -74,6 +74,8 @@ const hand = (p: Page) =>
try { try {
const ctxA = await browser.newContext({ viewport: { width: 1440, height: 900 }, locale: 'ko-KR' }); 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' }); 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 a = await ctxA.newPage();
const b = await ctxB.newPage(); const b = await ctxB.newPage();
const errors: string[] = []; const errors: string[] = [];