(page)
| 125 | /* Page helpers */ |
| 126 | |
| 127 | async function freshHistory(page) { |
| 128 | // A page of this origin without the app, so the chat history database is not open. |
| 129 | await page.goto(`${ORIGIN}/probe-blank`, { waitUntil: 'domcontentloaded' }); |
| 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 }); |
no outgoing calls
no test coverage detected