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

Function getCellAction

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

Source from the content-addressed store, hash-verified

59};
60
61const getCellAction = (
62 tableTitle: string,
63 rowId: string,
64 actionTitle: string,
65 index: number = 0,
66): HTMLElement => {
67 const row = getDetails(tableTitle)
68 .querySelector(`th[title="${rowId}"]`)
69 ?.closest('tr');
70 expect(row).not.toBeNull();
71 const actions = row?.querySelectorAll(`img[title="${actionTitle}"]`);
72 expect(actions?.[index]).not.toBeNull();
73 return actions?.[index] as HTMLElement;
74};
75
76const NO_PROVIDER_MESSAGE =
77 '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…