fix(cli): replace deprecated page.waitForTimeout with setTimeout

page.waitForTimeout was removed in Puppeteer v22+.
This commit is contained in:
Miguel Ángel
2026-03-30 22:22:34 +02:00
parent 81e6ff6e73
commit c41e9bf6cd
+1 -1
View File
@@ -180,7 +180,7 @@ export function createStudioServer(options: StudioServerOptions): StudioServer {
win.__timeline.seek(t);
}
}, opts.seekTime);
await page.waitForTimeout(300);
await new Promise((r) => setTimeout(r, 300));
const screenshot = (await page.screenshot({ type: "jpeg", quality: 85 })) as Buffer;
return screenshot;
} catch {