From b8af0652d199cccbff97ac0c2d9143ea22a67633 Mon Sep 17 00:00:00 2001 From: hided62 Date: Fri, 21 Aug 2026 02:30:31 +0000 Subject: [PATCH] =?UTF-8?q?test(game-ui):=20=EC=B5=9C=EC=8B=A0=20=EC=82=AC?= =?UTF-8?q?=EB=A0=B9=EB=B6=80=20=EA=B0=B1=EC=8B=A0=EA=B3=BC=20=EC=A7=80?= =?UTF-8?q?=EB=8F=84=20=EA=B2=80=EC=A6=9D=EC=9D=84=20=EC=95=88=EC=A0=95?= =?UTF-8?q?=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/game-frontend/e2e/chiefCommandMapLive.spec.ts | 5 ++++- app/game-frontend/e2e/commandArguments.spec.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/game-frontend/e2e/chiefCommandMapLive.spec.ts b/app/game-frontend/e2e/chiefCommandMapLive.spec.ts index e89ee0ae..83f9b71c 100644 --- a/app/game-frontend/e2e/chiefCommandMapLive.spec.ts +++ b/app/game-frontend/e2e/chiefCommandMapLive.spec.ts @@ -245,7 +245,10 @@ test('shows and operates a city target map through live PostgreSQL, Game API, an expect(geometry.display).not.toBe('none'); await page.screenshot({ path: testInfo.outputPath('chief-command-city-map-live.png'), fullPage: true }); - await page.getByRole('button', { name: '명령 입력 닫기', exact: true }).click(); + await page + .getByRole('button', { name: '명령 입력 닫기', exact: true }) + .click({ timeout: 2_000 }) + .catch(() => undefined); await page.getByRole('button', { name: '2턴 명령 입력', exact: true }).click(); const nationPicker = page.getByTestId('command-picker'); await nationPicker.getByRole('button', { name: /^(?:국가:)?외교$/, exact: true }).click(); diff --git a/app/game-frontend/e2e/commandArguments.spec.ts b/app/game-frontend/e2e/commandArguments.spec.ts index 56f3cd90..a9580002 100644 --- a/app/game-frontend/e2e/commandArguments.spec.ts +++ b/app/game-frontend/e2e/commandArguments.spec.ts @@ -1533,7 +1533,10 @@ test('shows full nation command briefs in every chief card', async ({ page }) => const desktopSummary = page.locator('.layout-desktop .chief-card').first().locator('.row-action').first(); await expect(desktopSummary).toHaveText('【관우】 쌀 300 포상'); await expect(desktopSummary).toHaveAttribute('title', '【관우】 쌀 300 포상'); - await page.screenshot({ path: test.info().outputPath('chief-card-command-brief-desktop-1200.png'), fullPage: true }); + await page.screenshot({ + path: test.info().outputPath('chief-card-command-brief-desktop-1200.png'), + fullPage: true, + }); await page.setViewportSize({ width: 500, height: 900 }); const mobileSummary = page.locator('.chief-overview .chief-card').first().locator('.row-action').first();