Elffuss BraidHub

utopia-ia/elffuss-claw public

main · 623 BRawPermalink
1import { chromium } from 'playwright';
2const OUT = (process.env.SCRATCH || '/tmp/elffuss-test') + '/videos';
3const BASE = 'https://claw.elffuss.com';
4const ctx = await chromium.launch().then(b => b.newContext({
5 viewport: { width: 1440, height: 900 },
6 recordVideo: { dir: OUT, size: { width: 1440, height: 900 } },
7}));
8// SIN elffuss.welcomed — para que se vea el splash de bienvenida
9const p = await ctx.newPage();
10await p.goto(BASE + '/', { waitUntil: 'domcontentloaded' });
11await p.waitForTimeout(4500); // deja que la animación de bienvenida se asiente
12await ctx.close();
13console.log('OK — splash capturado');