라이어 게임 입력 중: 설명 차례인 사람이 토론 채팅을 쳐도 "입력 중"이 보이게

- BotActivity hide → hideBots: 컴퓨터 활동에만 적용(사람의 입력 중은 언제나 채팅 칸에서 오므로 숨기지 않음)
- BotActivity.test.tsx: 설명 차례인 사람의 채팅 입력은 보이고, 설명 차례인 컴퓨터의 입력은 숨겨지고, 상태 줄에는 생각 중만
- e2e: 설명 첫 차례에 말하는 사람이 토론 채팅을 치면 다른 사람 채팅 칸에 입력 중, 보낸 말은 설명으로 치지 않음
- apps/web tsconfig: *.test.tsx도 타입 검사에서 제외(.test.ts와 같게)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-18 01:33:56 +09:00
parent 03e0e8ed84
commit 9f16bf833a
5 changed files with 60 additions and 7 deletions

View File

@@ -3035,6 +3035,15 @@ const PLANS: Record<string, Plan> = {
if (speaker < 0) throw new Error(`nobody can describe (turn ${turn + 1})`);
const p = pages[speaker]!;
const input = p.getByLabel('내 설명 (한 문장)');
if (turn === 0) {
// The chat is open while describing: the speaker typing in it shows "입력 중" inside the others' 토론 chat.
const chat = p.getByLabel('토론 채팅 메시지');
await chat.fill('잠깐만요');
for (const q of pages.filter((_, i) => i !== speaker)) await q.locator('.lg-chat .bot-activity [data-person]', { hasText: `${LIAR_NICKS[speaker]} 입력 중` }).waitFor({ timeout: 10_000 });
await chat.press('Enter');
for (const q of pages) await q.locator('.lg-msgs .lg-msg', { hasText: '잠깐만요' }).waitFor({ timeout: 15_000 });
if (!(await p.getByLabel('내 설명 (한 문장)').count())) throw new Error('a chat line counted as the description');
}
if (refused < 0 && speaker !== L) {
await input.fill(`${[...word].join(' ')} 맞죠`);
await input.press('Enter');