(page)
| 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 }); |
| 145 | await wait(400); |
| 146 | } |
| 147 | async function closeConfig(page) { |
| 148 | if (await page.locator('dialog.cbm-agent-settings').count()) await page.getByRole('button', { name: 'Close agent configuration' }).click(); |
| 149 | await wait(300); |
no test coverage detected