fix(frontend): NPC 장수명 색상을 Ref와 일치시킨다

암행부와 국가 장수 목록의 잘못되거나 누락된 색상을 공통 팔레트로 통일한다.
명령 대상, 토너먼트와 베팅 응답에도 npcState를 전달해 같은 표시 계약을 적용한다.
데스크톱과 모바일 Chromium 회귀 테스트로 상태별 색상을 검증한다.
This commit is contained in:
2026-08-25 01:18:27 +00:00
parent 7af1f63a8e
commit 2d711d0bab
17 changed files with 253 additions and 89 deletions
@@ -146,6 +146,7 @@ const inputOptions = {
{
value: 3,
label: '여포NPC (아국 · 업)',
npcState: 2,
gold: 3000,
rice: 500,
crew: 1500,
@@ -2221,6 +2222,10 @@ test('offers Ref amount presets and rich, command-specific general lists', async
'여포NPC (아국 · 업)',
'장수 (아국 · 업)',
]);
await expect(generalList.locator('.target-option').filter({ hasText: '여포NPC' }).locator('strong')).toHaveCSS(
'color',
'rgb(0, 255, 255)'
);
await expect(generalList).toContainText('금 100 · 쌀 4,000 · 병력 1,200 · 탑승 부대 청룡대 (부대장)');
await form.getByRole('button', { name: '쌀', exact: true }).click();
await expect(generalList.locator('.target-option strong')).toHaveText([