라이어 게임: "입력 중…" 표시를 오른쪽 상태 줄에서 토론 채팅 칸 안(입력칸 바로 위)으로

- GameUI.typingInChat: 게임 채팅 칸이 입력 중 표시를 맡고, 상태 줄은 컴퓨터 "생각 중"만 보인다
- BotActivity: only='thinking', hide(설명 차례인 컴퓨터는 채팅이 아니라 설명을 치는 중이라 빼기)
- e2e: 토론 중 입력하면 다른 사람 화면의 토론 채팅 칸 안에만 "입력 중"이 보이는지 확인

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-18 01:25:13 +09:00
parent fcc79f05bc
commit 03e0e8ed84
5 changed files with 23 additions and 5 deletions

View File

@@ -3061,6 +3061,14 @@ const PLANS: Record<string, Plan> = {
for (const p of pages) await liarBanner(p, '자유 토론');
const citizen = (L + 1) % 3;
await pages[citizen]!.getByLabel('토론 채팅 메시지').fill(`${LIAR_NICKS[L]}님이 수상해요`);
{
// "입력 중…" shows inside the 토론 chat box, not on the status row.
const other = pages[(citizen + 1) % 3]!;
await other.locator('.lg-chat .bot-activity [data-person]', { hasText: `${LIAR_NICKS[citizen]} 입력 중` }).waitFor({ timeout: 10_000 });
const outside = await other.locator('.bot-activity [data-person]').evaluateAll((els) => els.filter((e) => !e.closest('.lg-chat')).length);
if (outside) throw new Error('"입력 중" is shown outside the 토론 chat');
await other.locator('.lg-chat').screenshot({ path: join(SHOTS, 'liar-typing.png') });
}
await pages[citizen]!.getByLabel('토론 채팅 메시지').press('Enter');
for (const p of pages) await p.locator('.lg-msgs .lg-msg', { hasText: '님이 수상해요' }).waitFor({ timeout: 15_000 });
{