MCPcopy
hub / github.com/callumalpass/tasknotes / openTaskListByPath

Function openTaskListByPath

e2e/release-gifs.spec.ts:226–238  ·  view source on GitHub ↗
(page: Page, relativePath: string)

Source from the content-addressed store, hash-verified

224}
225
226async function openTaskListByPath(page: Page, relativePath: string): Promise<void> {
227 await openFileByPath(page, relativePath);
228 const activeLeaf = page.locator(".workspace-leaf.mod-active").first();
229 await activeLeaf.waitFor({ state: "visible", timeout: 10000 });
230 const hasRenderableList = await activeLeaf
231 .locator('.task-list-view, [data-type="tasknotesTaskList"], .task-card, [class*="bases"]')
232 .first()
233 .isVisible({ timeout: 3000 })
234 .catch(() => false);
235 if (!hasRenderableList) {
236 await page.waitForTimeout(1200);
237 }
238}
239
240async function openCalendarByPath(page: Page, relativePath: string): Promise<void> {
241 await openFileByPath(page, relativePath);

Callers 1

Calls 1

openFileByPathFunction · 0.85

Tested by

no test coverage detected