import { render, screen } from "@testing-library/react";
import { describe, expect, it } from "vitest";
import Distribution from "./Distribution";

describe("Distribution page", () => {
  it("renders the supplied distribution landing page content", () => {
    render(<Distribution />);

    expect(
      screen.getByRole("heading", { name: /gardez vos magasins au frais tout l'été/i })
    ).toBeInTheDocument();
    expect(screen.getByText(/prime cee incluse/i)).toBeInTheDocument();
    expect(screen.getAllByText(/BAT-EN-112/i).length).toBeGreaterThan(0);
    expect(
      screen.getByRole("heading", { name: /faites de la fraîcheur un atout commercial/i })
    ).toBeInTheDocument();
  });
});
