채팅: 가리기 삭제, 100줄이 찬 뒤에도 맨 아래 고정(+새 메시지 수), 이름 줄과 말풍선으로 이름·내용 구분

- 공통 ChatMessage(이름 줄 + 말풍선, 내 말은 오른쪽, 이어 말하면 이름 한 번) — 방 채팅·마피아·라이어 게임, 그림 맞히기 이름 표시
- useStickToBottom: 개수 대신 목록 내용 변화를 보고 맨 아래 유지, 위로 올려 읽는 중엔 그대로, 보내면 다시 맨 아래
- 휴대폰 채팅 버튼의 새 메시지 수도 100줄 뒤에 0이 되던 문제(마지막 본 id 기준으로)
- e2e/chat.e2e.ts: PC 대기실·게임 옆 칸·휴대폰 시트

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-13 03:48:56 +09:00
parent 115969515c
commit 65c56d3ae7
11 changed files with 370 additions and 60 deletions

View File

@@ -67,7 +67,7 @@ try {
await a.screenshot({ path: join(SHOTS, 'ai-1-typing.png') });
await a.waitForFunction((n) => [...document.querySelectorAll('.chat-line')].slice(n).some((l) => l.querySelector('strong')?.textContent === '컴퓨터 1'), before + 1, { timeout: 30_000 });
const lines = await a.locator('.chat-line').allInnerTexts();
console.log(' omok chat:', lines.map((l) => l.replace(/\n/g, ' ').replace(/가리기$/, '')).join(' | '));
console.log(' omok chat:', lines.map((l) => l.replace(/\n/g, ' ')).join(' | '));
await a.screenshot({ path: join(SHOTS, 'ai-2-answer.png') });
});