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();