(page, state, timeout)
| 224 | |
| 225 | /** Auf eine Lage des Sidecars warten. */ |
| 226 | const waitForState = (page, state, timeout) => |
| 227 | page.waitForFunction( |
| 228 | (expected) => globalThis.__atlasLlm?.state === expected, |
| 229 | state, |
| 230 | { timeout }, |
| 231 | ); |
| 232 | |
| 233 | async function main() { |
| 234 | const totalStarted = Date.now(); |