MCPcopy Index your code
hub / github.com/coder/mux / getWorkspaceRow

Function getWorkspaceRow

tests/ui/workspaces/subagents.test.ts:40–44  ·  view source on GitHub ↗
(container: HTMLElement, workspaceId: string)

Source from the content-addressed store, hash-verified

38import { renderApp, type RenderedApp } from "../renderReviewPanel";
39
40function getWorkspaceRow(container: HTMLElement, workspaceId: string): HTMLElement | null {
41 return container.querySelector(
42 `[data-workspace-id="${workspaceId}"][role="button"]`
43 ) as HTMLElement | null;
44}
45
46function getQuickArchiveButton(row: HTMLElement): HTMLButtonElement | null {
47 return row.querySelector('button[aria-label^="Archive workspace "]') as HTMLButtonElement | null;

Callers 1

subagents.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected