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

test.describe("§15.7 scenario 1: Landing", () => {
  test("hero and marquee are visible", async ({ page }) => {
    await page.goto("/");
    await expect(page.getByRole("heading", { name: /Технологии будущего на вашей ферме/i })).toBeVisible();
    await expect(page.locator("#integrations .marquee-track")).toBeVisible();
  });

  test("respects prefers-reduced-motion", async ({ page }) => {
    await page.emulateMedia({ reducedMotion: "reduce" });
    await page.goto("/");
    await expect(page.getByRole("heading", { name: /Технологии будущего на вашей ферме/i })).toBeVisible();
  });
});
