import { test, expect } from '@playwright/test';

test('главная страница', async ({ page }) => {
  await page.setViewportSize({ width: 1440, height: 900 });
  await page.goto('http://localhost:3000');
  await expect(page.locator('main')).toBeVisible();
  await page.evaluate(() => document.fonts.ready);
  await expect(page).toHaveScreenshot('home.png', {
    animations: 'disabled',
    maxDiffPixelRatio: 0.01,
  });
});
