Warten, bis das Bild wirklich gefuellt ist. Ein leeres Bild ist keine Antwort.
(page)
| 165 | |
| 166 | /** Warten, bis das Bild wirklich gefuellt ist. Ein leeres Bild ist keine Antwort. */ |
| 167 | async function waitForFlow(page) { |
| 168 | await page.waitForSelector('[data-testid="atlas-flow"]', { timeout: 60000 }); |
| 169 | await page.waitForFunction( |
| 170 | () => Number(document.querySelector('[data-testid="atlas-flow"]')?.getAttribute('data-arrows') ?? '0') > 0, |
| 171 | undefined, |
| 172 | { timeout: 60000 }, |
| 173 | ); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Den Erklaerer ueber den flow()-Kopf oeffnen. |