Elffuss BraidHub

utopia-ia/elffuss-claw public

main · 642 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 locale: 'es-ES',
7 recordVideo: { dir: OUT, size: { width: 1440, height: 900 } },
8}));
9// SIN elffuss.welcomed — para que se vea el splash de bienvenida
10const p = await ctx.newPage();
11await p.goto(BASE + '/', { waitUntil: 'domcontentloaded' });
12await p.waitForTimeout(4500); // deja que la animación de bienvenida se asiente
13await ctx.close();
14console.log('OK — splash capturado');