채팅 소리 기본 크기를 게임 소리의 80%로 올리고(60%는 너무 안 들린다는 의견), 관리자 사이트 설정에 "채팅 소리 크기"(게임 소리의 0~200%, 정수, 기본 80%)를 추가. 0%면 채팅 소리 없음. 각자의 소리 크기(0~100)는 그대로 곱해짐. 저장하면 /api/config와 방 정보(RoomView.chatSound)로 열린 방에도 바로 적용. 설정 화면에 저장 없이 그 값으로 울려 보는 "들어 보기" 버튼. feedback.test.ts·admin.test.ts·admin.e2e.ts에 확인 추가, docs/14-admin.md 표에 항목 추가

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-15 00:45:33 +09:00
parent 42e8d7650b
commit b61be627c9
14 changed files with 153 additions and 17 deletions

View File

@@ -131,6 +131,19 @@ try {
if (app.settings.getSite().chatFloodGuard !== true) throw new Error('chat flood guard not saved');
});
await step('사이트 탭: 채팅 소리 크기 기본 80%, 150% 저장 → /api/config 반영', async () => {
const pct = a.getByLabel('채팅 소리 크기(%)');
if ((await pct.inputValue()) !== '80') throw new Error(`chat sound should default to 80: ${await pct.inputValue()}`);
await pct.fill('150');
await pct.evaluate((el) => el.scrollIntoView({ block: 'center' }));
await a.getByRole('button', { name: '들어 보기' }).click();
await a.screenshot({ path: join(SHOTS, 'admin-6-chat-sound.png') });
await a.getByRole('button', { name: '저장', exact: true }).click();
await a.getByText('저장했어요.').last().waitFor();
const cfg = await a.evaluate(async () => (await (await fetch('/api/config')).json()).chatSound);
if (cfg !== 150) throw new Error(`chatSound not saved: ${cfg}`);
});
await step('기록 탭에 변경 내역', async () => {
await a.locator('.admin-side').getByRole('link', { name: '기록', exact: true }).click();
await a.getByText('어드민 추가').waitFor();