diff --git a/extension/src/popup/components/__tests__/item-list.test.ts b/extension/src/popup/components/__tests__/item-list.test.ts index cd8fcd7..58cbb74 100644 --- a/extension/src/popup/components/__tests__/item-list.test.ts +++ b/extension/src/popup/components/__tests__/item-list.test.ts @@ -30,7 +30,12 @@ describe('popup/item-list in org context', () => { // (the personal entries don't carry over across an org_switch). it('loads org items (grant-filtered) when context is an org', async () => { mockGetState.mockReturnValue({ orgContext: 'org-1', entries: [], searchQuery: '', selectedIndex: 0 }); - send.mockResolvedValue({ ok: true, data: [{ id: 'a', title: 'db', collection: 'prod-infra', modified: 1 }] }); + // org_list_items returns OrgManifestEntry[] (dedicated org type; collection is + // REQUIRED, not the personal ManifestEntry's optional one) — Dev-A mirrors + // OrgManifestEntry into shared/types.ts; the list consumes it at integration. + send.mockResolvedValue({ ok: true, data: [ + { id: 'a', type: 'login', title: 'db', tags: [], collection: 'prod-infra', modified: 1 }, + ]}); renderItemList(document.getElementById('app')!); await Promise.resolve();