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

Function findRuntimeOption

tests/ui/runtime/docker.test.ts:39–42  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

37}
38
39function findRuntimeOption(label: string): HTMLElement | null {
40 const options = Array.from(document.querySelectorAll('[role="option"]')) as HTMLElement[];
41 return options.find((option) => option.textContent?.includes(label)) ?? null;
42}
43
44async function selectRuntime(container: HTMLElement, label: string): Promise<void> {
45 const trigger = getWorkspaceTypeTrigger(container);

Callers 2

selectRuntimeFunction · 0.85
docker.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected