MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / click

Function click

graph-ui/src/architecture/RepositoryMap.test.tsx:17–17  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

15 const graph: GraphData = { total_nodes: 2, nodes: [makeNode(1, 'serve', 'src/api/server.ts'), makeNode(2, 'save', 'src/store/db.ts')], edges: [{ source: 1, target: 2, type: 'CALLS' }] };
16 const overview: ArchitectureOverviewDto = { totalSymbols: 2, totalRelations: 1, symbolKinds: [], relationKinds: [], languages: [], groups: [], entryPoints: [], routes: [], clusters: [], layers: [], boundaries: [], hotspots: [], files: [] };
17 const click = async (text: string) => { const buttons = [...container.querySelectorAll('button')]; const button = buttons.find(button => button.textContent === text) ?? buttons.find(button => button.textContent?.includes(text)); expect(button, text).toBeTruthy(); await act(async () => button!.click()); };
18 try {
19 await act(async () => root.render(<RepositoryMapView graph={graph} overview={overview} filter="" onNavigate={onNavigate} onSelect={onSelect} />));
20 await click('src/api');

Callers 1

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected