The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(memory): cover memory page rendering and interactions
Steven Enamakel48ab6f20cf70
diff --git a/app/src/pages/__tests__/Memory.test.tsx b/app/src/pages/__tests__/Memory.test.tsxindex e0f47d29b8..94c60c824e 100644--- a/app/src/pages/__tests__/Memory.test.tsx+++ b/app/src/pages/__tests__/Memory.test.tsx@@ -46,9 +46,6 @@ vi.mock('../../components/memory/MemoryImportBanner', () => ({<div data-testid="stub-import">{engineLabel}</div>),}));-vi.mock('../../components/memory/MemoryCortexAnnouncement', () => ({- default: () => <div data-testid="stub-announcement" />,-}));const ON: EngineState = {engine: 'tinyhumans',@@ -121,22 +118,20 @@ describe('Memory page', () => {expect(screen.queryByTestId('stub-import')).not.toBeInTheDocument();});- it('keeps the import flow and announcement on the Migration chip only', async () => {+ it('keeps the import flow on the Migration chip only', async () => {renderAt('?tab=brain&brain=migration');expect(await screen.findByTestId('stub-import')).toHaveTextContent('TinyHumans');- expect(screen.getByTestId('stub-announcement')).toBeInTheDocument();+ expect(screen.queryByTestId('memory-cortex-announcement')).not.toBeInTheDocument();fireEvent.click(screen.getByTestId('brain-tab-ask'));expect(await screen.findByTestId('stub-ask')).toBeInTheDocument();expect(screen.queryByTestId('stub-import')).not.toBeInTheDocument();- expect(screen.queryByTestId('stub-announcement')).not.toBeInTheDocument();});- it('shows the announcement and the off state on Migration while memory is off', async () => {+ it('shows the off state on Migration while memory is off', async () => {hoisted.engineGet.mockResolvedValue(OFF);renderAt('?tab=brain&brain=migration');expect(await screen.findByTestId('memory-off-state')).toBeInTheDocument();- expect(screen.getByTestId('stub-announcement')).toBeInTheDocument();expect(screen.queryByTestId('stub-import')).not.toBeInTheDocument();});