MCPcopy
hub / github.com/aidenybai/react-grab / isEditPanelVisible

Function isEditPanelVisible

packages/react-grab/e2e/edit-panel-helpers.ts:16–25  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

14export const MAIN_TITLE_SELECTOR = "[data-testid='main-title']";
15
16export const isEditPanelVisible = async (page: Page): Promise<boolean> =>
17 page.evaluate(
18 ({ attrName, panelAttr }) => {
19 const host = document.querySelector(`[${attrName}]`);
20 const shadowRoot = host?.shadowRoot;
21 if (!shadowRoot) return false;
22 return shadowRoot.querySelector(`[${panelAttr}]`) !== null;
23 },
24 { attrName: ATTRIBUTE_NAME, panelAttr: EDIT_PANEL_ATTR },
25 );
26
27export const getVisiblePropertyKeys = async (page: Page): Promise<string[]> =>
28 page.evaluate(

Callers 4

openEditPanelFunction · 0.85
edit-panel.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…