(page, project, workspace)
| 130 | await page.evaluate(() => new Promise((done) => { const request = indexedDB.deleteDatabase('cbm-browser-chat-history'); request.onsuccess = request.onerror = request.onblocked = () => done(); })); |
| 131 | } |
| 132 | async function open(page, project, workspace) { |
| 133 | await page.goto(`${ORIGIN}/?project=${encodeURIComponent(project)}&workspace=${workspace}`, { waitUntil: 'domcontentloaded' }); |
| 134 | await page.waitForSelector('.atlas-shell', { timeout: 30000 }); |
| 135 | await wait(1500); |
| 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 }) |
no test coverage detected