// scripts/capture-forgejo-release-live.js const { chromium } = require('@playwright/test'); const path = require('path'); const fs = require('fs'); async function capture() { const browser = await chromium.launch({ channel: 'msedge', headless: true }); const context = await browser.newContext({ viewport: { width: 1440, height: 960 }, deviceScaleFactor: 2 }); const page = await context.newPage(); console.log('Logging in to Forgejo...'); await page.goto('https://git.chanpaca.net/user/login', { waitUntil: 'networkidle' }); await page.fill('input[name="user_name"]', 'yunchan'); await page.fill('input[name="password"]', 'ONVI2v4J#y'); await page.click('button[type="submit"]'); await page.waitForTimeout(3000); console.log('Navigating to releases...'); await page.goto('https://git.chanpaca.net/yunchan/d3ro-voice/releases', { waitUntil: 'networkidle' }); await page.waitForTimeout(2000); const shotPath = 'C:/Users/encep/.gemini/antigravity-cli/brain/3ab7ae82-5634-41d5-93a7-3c12c22503e2/screenshots/git_server/05_forgejo_v1_0_0_official_release_with_binary.png'; await page.screenshot({ path: shotPath, fullPage: true }); console.log('Saved:', shotPath); await browser.close(); } capture().catch(console.error);