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

Function click

graph-ui/src/system/SystemWorkspace.test.tsx:16–20  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

14 indexJobs: vi.fn().mockResolvedValue([{ slot: 1, status: 'indexing', path: '/repo', error: '' }]),
15});
16const click = async (label: string) => {
17 const button = [...container.querySelectorAll('button')].find((entry) => entry.textContent === label);
18 expect(button).toBeDefined();
19 await act(async () => { button?.click(); });
20};
21const render = async (api = source(), onOpenProjects = vi.fn(), project = 'fixture-a', configuration?: SystemWorkspaceProps['configuration'], listProjects?: SystemWorkspaceProps['listProjects']) => {
22 await act(async () => { root.render(<SystemWorkspace api={api} onOpenProjects={onOpenProjects} pollMs={100} project={project} configuration={configuration} listProjects={listProjects} />); });
23 return api;

Callers 1

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected