(label: string)
| 37 | } |
| 38 | |
| 39 | function 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 | |
| 44 | async function selectRuntime(container: HTMLElement, label: string): Promise<void> { |
| 45 | const trigger = getWorkspaceTypeTrigger(container); |
no outgoing calls
no test coverage detected