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

Function clickSettingsTab

e2e/docs-screenshots.spec.ts:476–482  ·  view source on GitHub ↗
(page: Page, tabName: string)

Source from the content-addressed store, hash-verified

474
475 // Helper to click a settings tab
476 async function clickSettingsTab(page: Page, tabName: string): Promise<void> {
477 const tab = page.locator(`.mod-settings button:has-text("${tabName}")`).first();
478 if (await tab.isVisible({ timeout: 2000 }).catch(() => false)) {
479 await tab.click();
480 await page.waitForTimeout(400);
481 }
482 }
483
484 // Helper to scroll settings content
485 async function scrollSettingsContent(page: Page, pixels: number): Promise<void> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected