관리자 사이트 설정에 "채팅 도배 방지" 켜기/끄기(기본 끄기): 끄면 채팅·입력 중 신호에 속도 제한이 전혀 없고, 켜면 접속마다 초당 50개(한 번에 200개)와 해석 전 원시 한도. 메시지마다 설정을 읽어 저장하면 열린 접속에도 바로 적용. 게임 조작 한도와 잘못된 메시지 차단은 그대로

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-14 09:08:54 +09:00
parent 0bff06fa3e
commit 77e9688876
9 changed files with 105 additions and 10 deletions

View File

@@ -118,6 +118,19 @@ try {
if (cfg !== 2) throw new Error(`gameSpeed not saved: ${cfg}`);
});
await step('사이트 탭: 채팅 도배 방지는 기본 끄기, 켜기 저장 → 서버에 바로 반영', async () => {
const guard = a.getByRole('group', { name: '채팅 도배 방지' });
if ((await guard.getByRole('button', { name: '끄기' }).getAttribute('aria-pressed')) !== 'true') throw new Error('chat flood guard should default to off');
if (app.settings.getSite().chatFloodGuard !== false) throw new Error('server default should be off');
await guard.getByRole('button', { name: '켜기' }).click();
await guard.evaluate((el) => el.scrollIntoView({ block: 'center' }));
await a.screenshot({ path: join(SHOTS, 'admin-5-chat-flood-guard.png') });
await a.getByRole('button', { name: '저장', exact: true }).click();
await a.getByText('저장했어요.').last().waitFor();
for (let i = 0; i < 20 && app.settings.getSite().chatFloodGuard !== true; i++) await a.waitForTimeout(100);
if (app.settings.getSite().chatFloodGuard !== true) throw new Error('chat flood guard not saved');
});
await step('기록 탭에 변경 내역', async () => {
await a.locator('.admin-side').getByRole('link', { name: '기록', exact: true }).click();
await a.getByText('어드민 추가').waitFor();