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

Function allByTestId

graph-ui/src/projects/ProjectsPanel.test.tsx:136–136  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

134
135const byTestId = (id: string): HTMLElement | null => container.querySelector(`[data-testid="${id}"]`);
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();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected