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

Function click

graph-ui/src/projects/ProjectsPanel.test.tsx:138–144  ·  view source on GitHub ↗
(element: HTMLElement | null)

Source from the content-addressed store, hash-verified

136const allByTestId = (id: string): HTMLElement[] => [...container.querySelectorAll<HTMLElement>(`[data-testid="${id}"]`)];
137
138async function click(element: HTMLElement | null): Promise<void> {
139 expect(element, 'the control must exist').not.toBeNull();
140 await act(async () => {
141 element?.click();
142 });
143 await settle();
144}
145
146async function type(element: HTMLElement | null, value: string): Promise<void> {
147 expect(element, 'the field must exist').not.toBeNull();

Callers 1

Calls 2

expectFunction · 0.85
settleFunction · 0.70

Tested by

no test coverage detected