remove inbox top-level navigation
This commit is contained in:
@@ -82,6 +82,36 @@ describe('RoomBoardV2', () => {
|
||||
expect(html).toContain('prod 배포 완료');
|
||||
});
|
||||
|
||||
it('surfaces merge approval items as room action badges', () => {
|
||||
const html = renderToStaticMarkup(
|
||||
createElement(RoomBoardV2, {
|
||||
...baseProps,
|
||||
inbox: [
|
||||
{
|
||||
id: 'paired:merge-1:merge_ready',
|
||||
groupKey: 'paired:merge-1:merge_ready',
|
||||
kind: 'approval',
|
||||
severity: 'warn',
|
||||
title: 'Ready to merge',
|
||||
summary: 'merge_ready',
|
||||
occurredAt: '2026-04-28T04:00:00.000Z',
|
||||
lastOccurredAt: '2026-04-28T04:00:00.000Z',
|
||||
createdAt: '2026-04-28T04:00:00.000Z',
|
||||
occurrences: 1,
|
||||
source: 'paired-task',
|
||||
roomJid: 'room-1',
|
||||
taskId: 'merge-1',
|
||||
taskStatus: 'merge_ready',
|
||||
},
|
||||
],
|
||||
}),
|
||||
);
|
||||
|
||||
expect(html).toContain(t.inbox.kinds.approval);
|
||||
expect(html).toContain('room-inbox-pip sev-warn');
|
||||
expect(html).toContain('rooms-list-bell sev-warn');
|
||||
});
|
||||
|
||||
it('renders an empty state without snapshots', () => {
|
||||
const html = renderToStaticMarkup(
|
||||
createElement(RoomBoardV2, { ...baseProps, snapshots: [] }),
|
||||
|
||||
Reference in New Issue
Block a user