From 73aed906a8810a98a91ea0d226d7328664188b5b Mon Sep 17 00:00:00 2001 From: hided62 Date: Fri, 21 Aug 2026 02:35:54 +0000 Subject: [PATCH] =?UTF-8?q?test(game-ui):=20=EB=B0=9C=EB=A0=B9=20=EC=8B=A4?= =?UTF-8?q?=EC=A0=9C=20=EC=A7=80=EB=8F=84=20=ED=9D=90=EB=A6=84=EC=9D=84=20?= =?UTF-8?q?=EA=B3=A0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../e2e/chiefCommandMapLive.spec.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/game-frontend/e2e/chiefCommandMapLive.spec.ts b/app/game-frontend/e2e/chiefCommandMapLive.spec.ts index 83f9b71c..01bb0a44 100644 --- a/app/game-frontend/e2e/chiefCommandMapLive.spec.ts +++ b/app/game-frontend/e2e/chiefCommandMapLive.spec.ts @@ -264,6 +264,24 @@ test('shows and operates a city target map through live PostgreSQL, Game API, an ); await page.screenshot({ path: testInfo.outputPath('chief-command-nation-map-live.png'), fullPage: true }); + await page + .getByRole('button', { name: '명령 입력 닫기', exact: true }) + .click({ timeout: 2_000 }) + .catch(() => undefined); + await page.getByRole('button', { name: '3턴 명령 입력', exact: true }).click(); + const assignmentPicker = page.getByTestId('command-picker'); + await assignmentPicker.getByRole('button', { name: /^(?:국가:)?인사$/, exact: true }).click(); + await assignmentPicker.getByRole('button', { name: '발령', exact: true }).click(); + const assignmentForm = assignmentPicker.getByTestId('command-argument-form'); + const assignmentMap = assignmentForm.getByTestId('command-argument-map'); + await expect(assignmentMap).toBeVisible(); + await assignmentForm.screenshot({ path: testInfo.outputPath('chief-command-assignment-map-live.png') }); + await assignmentMap.locator('.city-base').nth(1).click(); + await expect(assignmentForm.getByRole('combobox', { name: '대상 도시' })).toHaveValue(String(targetCity.id)); + await expect(assignmentForm.getByTestId('command-map-selection-status')).toContainText( + `선택 도시${targetCity.name}` + ); + const mobileContext = await browser.newContext({ viewport: { width: 500, height: 900 }, deviceScaleFactor: 1,