Show full dashboard room content

This commit is contained in:
ejclaw
2026-04-28 19:53:00 +09:00
parent f7f4888f92
commit 38ba5b87fa
5 changed files with 57 additions and 28 deletions

View File

@@ -208,4 +208,42 @@ describe('RoomCardV2', () => {
);
expect(html).toContain('bar-chart-label-fit-playwright.png');
});
it('renders expanded watcher messages without truncating content', () => {
const watcherTail = 'WATCHER_TAIL_VISIBLE';
const html = renderToStaticMarkup(
createElement(RoomCardV2, {
activity: activity({
messages: [
{
id: 'watcher-1',
sender: 'bot-1',
senderName: 'reviewer',
content: `[Watcher] ${'검증 로그 '.repeat(40)} ${watcherTail}`,
timestamp: '2026-04-28T02:00:00.000Z',
isFromMe: false,
isBotMessage: true,
sourceKind: 'bot',
},
],
}),
activityLoading: false,
busy: false,
draft: '',
entry,
expanded: true,
inboxItems: [],
locale: 'ko',
onDraftChange: () => {},
onSendMessage: () => {},
onToggle: () => {},
pinned: true,
t,
...formatters,
}),
);
expect(html).toContain('class="room-watcher-fold"');
expect(html).toContain(watcherTail);
});
});