(page: Page)
| 146 | } |
| 147 | |
| 148 | async 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 | |
| 157 | async function openWorkspace( |
| 158 | page: Page, |