(name, holdMs = BEAT)
| 460 | |
| 461 | /** Ein benannter Halt: der Moment, in dem das Bild steht, plus die Ruhe. */ |
| 462 | const halt = async (name, holdMs = BEAT) => { |
| 463 | const atMs = Date.now() - recordingStarted; |
| 464 | steps.push({ step: steps.length + 1, name, atMs }); |
| 465 | log(`Halt ${String(steps.length).padStart(2, '0')} ${name} @ ${(atMs / 1000).toFixed(1)} s`); |
| 466 | await page.waitForTimeout(holdMs); |
| 467 | }; |
| 468 | |
| 469 | const openApp = async (project) => { |
| 470 | await page.goto(`${origin}/?project=${project}`, { waitUntil: 'load' }); |