Die Seite laden und warten, bis Baum und Coverage-Join beide da sind.
(page, origin)
| 384 | |
| 385 | /** Die Seite laden und warten, bis Baum und Coverage-Join beide da sind. */ |
| 386 | async function openApp(page, origin) { |
| 387 | await page.goto(`${origin}/?project=${PROJECT}`, { waitUntil: 'load' }); |
| 388 | await page.waitForSelector('[data-testid="atlas-statusbar"]', { timeout: 30000 }); |
| 389 | await page.waitForSelector('[data-testid="atlas-tree-row"]', { timeout: 30000 }); |
| 390 | await page.waitForFunction( |
| 391 | () => (globalThis.__atlasCoverage?.records?.length ?? -1) >= 0 |
| 392 | && !/joining the coverage lists/.test( |
| 393 | document.querySelector('.atlas-tree-note')?.textContent ?? 'joining the coverage lists', |
| 394 | ), |
| 395 | undefined, |
| 396 | { timeout: 40000 }, |
| 397 | ); |
| 398 | } |
| 399 | |
| 400 | /** Eine Datei im Baum anklicken und warten, bis der Reader eine Lage hat. */ |
| 401 | async function openInTree(page, path) { |