test(game-ui): 최신 사령부 갱신과 지도 검증을 안정화
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user