MCPcopy
hub / github.com/tinyplex/tinybase / getCellAction

Function getCellAction

test/unit/core/ui-react/ui-react-inspector.test.tsx:58–71  ·  view source on GitHub ↗
(
  tableTitle: string,
  rowId: string,
  actionTitle: string,
  index: number = 0,
)

Source from the content-addressed store, hash-verified

56};
57
58const getCellAction = (
59 tableTitle: string,
60 rowId: string,
61 actionTitle: string,
62 index: number = 0,
63): HTMLElement => {
64 const row = getDetails(tableTitle)
65 .querySelector(`th[title="${rowId}"]`)
66 ?.closest('tr');
67 expect(row).not.toBeNull();
68 const actions = row?.querySelectorAll(`img[title="${actionTitle}"]`);
69 expect(actions?.[index]).not.toBeNull();
70 return actions?.[index] as HTMLElement;
71};
72
73const NO_PROVIDER_MESSAGE =
74 'There are no Stores or other objects to inspect. Make sure you placed ' +

Callers 1

Calls 1

getDetailsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…