import { chromium } from 'playwright';

(async () => {
  const browser = await chromium.launch();
  const context = await browser.newContext();
  const page = await context.newPage();

  // Capture original frontend
  await page.goto('http://localhost:3000/');
  await page.waitForLoadState('networkidle');
  await page.waitForTimeout(2000);
  await page.screenshot({ path: 'tests/e2e/original-main.png', fullPage: true });

  console.log('Screenshot saved to tests/e2e/original-main.png');

  await browser.close();
})();
