| 110 | await page.waitForSelector('[data-testid="atlas-statusbar"]'); |
| 111 | |
| 112 | const activateChat = async () => { |
| 113 | const zone = page.locator('[data-testid="atlas-explain"]'); |
| 114 | if (await zone.getAttribute('data-open') !== 'true') await page.locator('[data-testid="atlas-explain-collapse"]').click(); |
| 115 | const tab = page.locator('[data-testid="atlas-explain-tab"][data-tab="chat"]'); |
| 116 | if (await tab.getAttribute('data-on') !== 'true') await tab.click(); |
| 117 | await page.waitForSelector('[data-testid="atlas-chat-depth"]', { state: 'visible' }); |
| 118 | }; |
| 119 | const ask = async (depth, configure = true) => { |
| 120 | const before = await page.locator('[data-testid="atlas-chat-turn"]').count(); |
| 121 | if (configure) { |