Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(intelligence): update Obsidian vault section tests

Steven Enamakeldf7ab762c6cb
diff --git a/app/src/components/intelligence/__tests__/ObsidianVaultSection.test.tsx b/app/src/components/intelligence/__tests__/ObsidianVaultSection.test.tsx
index 5b07892c6b..ca31344eba 100644
--- a/app/src/components/intelligence/__tests__/ObsidianVaultSection.test.tsx
+++ b/app/src/components/intelligence/__tests__/ObsidianVaultSection.test.tsx
@@ -84,8 +84,10 @@ describe('ObsidianVaultSection', () => {
});
// #4266: as a floating popover the panel overlays the graph, so its background
- // must be opaque — the old translucent `dark:bg-violet-500/10` let content
- // bleed through and made the text unreadable.
+ // must be opaque — the old translucent `dark:bg-*-500/10` let content bleed
+ // through and made the text unreadable. (The panel moved from the stock
+ // violet ramp to the themeable `primary` one; the opacity contract is
+ // unchanged.)
it('guidance panel has an opaque background (does not bleed through)', async () => {
memoryTreeObsidianVaultStatus.mockResolvedValue(status());
renderWithProviders(<ObsidianVaultSection contentRootAbs={ROOT} />);
@@ -93,9 +95,9 @@ describe('ObsidianVaultSection', () => {
fireEvent.click(screen.getByTestId('memory-open-in-obsidian'));
const panel = await screen.findByTestId('obsidian-vault-guidance');
- expect(panel).toHaveClass('bg-violet-50');
- expect(panel).toHaveClass('dark:bg-violet-950');
- expect(panel).not.toHaveClass('dark:bg-violet-500/10');
+ expect(panel).toHaveClass('bg-primary-50');
+ expect(panel).toHaveClass('dark:bg-primary-950');
+ expect(panel).not.toHaveClass('dark:bg-primary-500/10');
});
// #4266: the floating panel needs explicit dismissal — close button, Escape,