MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getSummaryAction

Function getSummaryAction

test/unit/core/ui-react/ui-react-inspector.test.tsx:20–26  ·  view source on GitHub ↗
(title: string, actionTitle: string)

Source from the content-addressed store, hash-verified

18};
19
20const getSummaryAction = (title: string, actionTitle: string): HTMLElement => {
21 const summary = screen.getByText(title).closest('summary');
22 expect(summary).not.toBeNull();
23 const action = summary?.querySelector(`img[title="${actionTitle}"]`);
24 expect(action).not.toBeNull();
25 return action as HTMLElement;
26};
27
28const getDetailsAction = (title: string, actionTitle: string): HTMLElement => {
29 const action = getDetails(title).querySelector(`img[title="${actionTitle}"]`);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…