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

Function ensureProjectExpanded

scripts/reproWorkspaceSwitchTearWeb.ts:148–155  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

146}
147
148async function ensureProjectExpanded(page: Page): Promise<void> {
149 const projectRow = page.locator("[data-project-path]").first();
150 await projectRow.waitFor({ state: "visible", timeout: 60_000 });
151 const expandButton = projectRow.locator('[aria-label*="Expand project"]');
152 if (await expandButton.isVisible().catch(() => false)) {
153 await expandButton.click();
154 }
155}
156
157async function openWorkspace(
158 page: Page,

Callers 1

mainFunction · 0.85

Calls 1

waitForMethod · 0.80

Tested by

no test coverage detected