MCPcopy
hub / github.com/coder/mux / queryMenuItem

Function queryMenuItem

tests/ui/chat/unreadIndicator.test.ts:391–394  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

389 let createdWorkspaceIds: string[];
390
391 function queryMenuItem(label: string): HTMLButtonElement | null {
392 const menuButtons = Array.from(document.querySelectorAll("button")) as HTMLButtonElement[];
393 return menuButtons.find((button) => button.textContent?.includes(label)) ?? null;
394 }
395
396 async function openWorkspaceActionsMenu(displayTitle: string): Promise<void> {
397 const menuButton = await waitFor(

Callers 2

openWorkspaceActionsMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected