(page, timeout = 300000)
| 136 | } |
| 137 | const agentLabel = (page) => page.locator('.atlas-browser-ai-action').first().getAttribute('aria-label').catch(() => ''); |
| 138 | async function agentActive(page, timeout = 300000) { |
| 139 | return page.waitForFunction(() => /Agent active/.test(document.querySelector('.atlas-browser-ai-action')?.getAttribute('aria-label') ?? ''), null, { timeout }) |
| 140 | .then(() => true).catch(() => false); |
| 141 | } |
| 142 | async function openConfig(page) { |
| 143 | if (!(await page.locator('dialog.cbm-agent-settings').count())) await page.locator('.atlas-browser-ai-action').first().click(); |
| 144 | await page.locator('dialog.cbm-agent-settings').waitFor({ timeout: 10000 }); |
no outgoing calls
no test coverage detected