| 1 | import { chromium } from 'playwright'; |
| 2 | const OUT = (process.env.SCRATCH || '/tmp/elffuss-test') + '/videos'; |
| 3 | const BASE = 'https://claw.elffuss.com'; |
| 4 | const 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 |
| 10 | const p = await ctx.newPage(); |
| 11 | await p.goto(BASE + '/', { waitUntil: 'domcontentloaded' }); |
| 12 | await p.waitForTimeout(4500); // deja que la animación de bienvenida se asiente |
| 13 | await ctx.close(); |
| 14 | console.log('OK — splash capturado'); |