(page: Page, tabName: string)
| 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> { |
no outgoing calls
no test coverage detected